diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-04-18 01:14:55 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-04-18 01:14:55 +0400 |
commit | be0b8ccfaaa98118468c8fec971792ab1123eaca (patch) | |
tree | c5a0f24fe547de8b411298bbe8df9cdc12b4a530 /source/blender/python/api2_2x/Library.c | |
parent | 45dee507aaaa159e5b0bda1f6fc81a928f78e17b (diff) |
Used GET_INT_FROM_POINTER to get rid of many warnings that only occurred with 64bit os's
Also use Py_ssize_t which we might need to define for older python's
Diffstat (limited to 'source/blender/python/api2_2x/Library.c')
-rw-r--r-- | source/blender/python/api2_2x/Library.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Library.c b/source/blender/python/api2_2x/Library.c index 971d2c0eebf..667db8a1dfd 100644 --- a/source/blender/python/api2_2x/Library.c +++ b/source/blender/python/api2_2x/Library.c @@ -941,7 +941,7 @@ PyTypeObject LibraryData_Type = { static PyObject *LibraryData_CreatePyObject( BPy_Library *self, void *mode ) { - return CreatePyObject_LibData( (int)mode, OTHER, NULL, NULL, + return CreatePyObject_LibData( GET_INT_FROM_POINTER(mode), OTHER, NULL, NULL, self->filename ); } |