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/CurNurb.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/CurNurb.c')
-rw-r--r-- | source/blender/python/api2_2x/CurNurb.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/CurNurb.c b/source/blender/python/api2_2x/CurNurb.c index 05ab6c5c050..174b5fb08dc 100644 --- a/source/blender/python/api2_2x/CurNurb.c +++ b/source/blender/python/api2_2x/CurNurb.c @@ -34,6 +34,8 @@ #include "gen_utils.h" #include "BezTriple.h" +#include "BKE_utildefines.h" + /* Only for ME_SMOOTH */ #include "DNA_meshdata_types.h" @@ -430,14 +432,14 @@ static PyObject *CurNurb_getPoints( BPy_CurNurb * self ) static PyObject *CurNurb_getFlagBits( BPy_CurNurb * self, void *type ) { return EXPP_getBitfield( (void *)&self->nurb->flag, - (int)type, 'h' ); + GET_INT_FROM_POINTER(type), 'h' ); } static int CurNurb_setFlagBits( BPy_CurNurb * self, PyObject *value, void *type ) { return EXPP_setBitfield( value, (void *)&self->nurb->flag, - (int)type, 'h' ); + GET_INT_FROM_POINTER(type), 'h' ); } /* |