Cleanup: Py3.7x warning
authorCampbell Barton <ideasman42@gmail.com>
Wed, 26 Jul 2017 21:23:36 +0000 (07:23 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 26 Jul 2017 21:29:16 +0000 (07:29 +1000)
source/gameengine/Ketsji/KX_FontObject.cpp

index 364f8d4bfc6c495413d8f3c280832a8bde5a756c..91e8e4fd42bff5380533902f5c720f89fd12c93b 100644 (file)
@@ -281,7 +281,7 @@ int KX_FontObject::pyattr_set_text(void *self_v, const KX_PYATTRIBUTE_DEF *attrd
        KX_FontObject* self = static_cast<KX_FontObject*>(self_v);
        if (!PyUnicode_Check(value))
                return PY_SET_ATTR_FAIL;
-       char* chars = _PyUnicode_AsString(value);
+       const char *chars = _PyUnicode_AsString(value);
 
        /* Allow for some logic brick control */
        CValue* tprop = self->GetProperty("Text");