diff options
Diffstat (limited to 'externals/grill/py/source/main.cpp')
-rw-r--r-- | externals/grill/py/source/main.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/externals/grill/py/source/main.cpp b/externals/grill/py/source/main.cpp index 608ecdd7..fadb0173 100644 --- a/externals/grill/py/source/main.cpp +++ b/externals/grill/py/source/main.cpp @@ -160,10 +160,11 @@ FLEXT_LIB_SETUP(py,pybase::lib_setup) pybase::pybase() - : module(NULL),detach(0) + : module(NULL) #ifdef FLEXT_THREADS , shouldexit(false),thrcount(0),stoptick(0) #endif + , detach(0) { PyThreadState *state = PyLockSys(); Py_INCREF(module_obj); @@ -244,7 +245,7 @@ void pybase::m__doc(PyObject *obj) } else { // copy string before newline to temp buffer and post - int l = nl-s; + unsigned int l = nl-s; if(l >= sizeof(buf)) l = sizeof buf-1; strncpy(buf,s,l); // copy all but newline buf[l] = 0; |