some ptr type conversions fixed
This commit is contained in:
@@ -82,8 +82,8 @@ PyObject* grpImageGenerateExpanded(PyObject* poSelf, PyObject* poArgs)
|
||||
|
||||
PyObject* grpImageGenerateFromHandle(PyObject * poSelf, PyObject* poArgs)
|
||||
{
|
||||
int iHandle;
|
||||
if (!PyTuple_GetInteger(poArgs, 0, &iHandle))
|
||||
unsigned long long iHandle;
|
||||
if (!PyTuple_GetUnsignedLongLong(poArgs, 0, &iHandle))
|
||||
return Py_BadArgument();
|
||||
|
||||
CGraphicImageInstance * pImageInstance = CGraphicImageInstance::New();
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
bool PyTuple_GetTextInstance(PyObject* poArgs, int pos, CGraphicTextInstance** ppTextInstance)
|
||||
{
|
||||
int handle;
|
||||
if (!PyTuple_GetInteger(poArgs, pos, &handle))
|
||||
unsigned long long handle;
|
||||
if (!PyTuple_GetUnsignedLongLong(poArgs, pos, &handle))
|
||||
return false;
|
||||
|
||||
if (!handle)
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
bool PyTuple_GetThingInstance(PyObject* poArgs, int pos, CGraphicThingInstance** ppRetThingInstance)
|
||||
{
|
||||
int handle;
|
||||
if (!PyTuple_GetInteger(poArgs, pos, &handle))
|
||||
unsigned long long handle;
|
||||
if (!PyTuple_GetUnsignedLongLong(poArgs, pos, &handle))
|
||||
return false;
|
||||
|
||||
if (!handle)
|
||||
|
||||
Reference in New Issue
Block a user