Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 539038 Details for
Bug 660808
app-emulation/virtualbox-5.2.14 PyXPCOM.h invalid conversion from ‘const char*’ to ‘char*’
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for const problem
VirtualBox-5.2.14.patch (text/plain), 1.12 KB, created by
Helmut Jarausch
on 2018-07-10 08:15:09 UTC
(
hide
)
Description:
Patch for const problem
Filename:
MIME Type:
Creator:
Helmut Jarausch
Created:
2018-07-10 08:15:09 UTC
Size:
1.12 KB
patch
obsolete
>--- src/libs/xpcom18a4/python/src/ErrorUtils.cpp.ORIG 2018-06-29 15:17:42.000000000 +0200 >+++ src/libs/xpcom18a4/python/src/ErrorUtils.cpp 2018-07-10 10:01:05.692862439 +0200 >@@ -55,7 +55,7 @@ > #endif > #include "nspr.h" // PR_fprintf > >-static char *PyTraceback_AsString(PyObject *exc_tb); >+static const char *PyTraceback_AsString(PyObject *exc_tb); > > // The internal helper that actually moves the > // formatted string to the target! >@@ -358,7 +358,7 @@ > */ > #define TRACEBACK_FETCH_ERROR(what) {errMsg = what; goto done;} > >-char *PyTraceback_AsString(PyObject *exc_tb) >+const char *PyTraceback_AsString(PyObject *exc_tb) > { > const char *errMsg = NULL; /* holds a local error message */ > char *result = NULL; /* a valid, allocated result. */ >@@ -438,9 +438,9 @@ > > { // a temp scope so I can use temp locals. > #if PY_MAJOR_VERSION <= 2 >- char *tempResult = PyString_AsString(obResult); >+ const char *tempResult = PyString_AsString(obResult); > #else >- char *tempResult = PyUnicode_AsUTF8(obResult); >+ const char *tempResult = PyUnicode_AsUTF8(obResult); > #endif > result = (char *)PyMem_Malloc(strlen(tempResult)+1); > if (result==NULL)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 660808
:
538990
| 539038