Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2008-04-18 01:14:55 +0400
committerCampbell Barton <ideasman42@gmail.com>2008-04-18 01:14:55 +0400
commitbe0b8ccfaaa98118468c8fec971792ab1123eaca (patch)
treec5a0f24fe547de8b411298bbe8df9cdc12b4a530 /source/blender/python/api2_2x/Text3d.c
parent45dee507aaaa159e5b0bda1f6fc81a928f78e17b (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/Text3d.c')
-rw-r--r--source/blender/python/api2_2x/Text3d.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/Text3d.c b/source/blender/python/api2_2x/Text3d.c
index 74a9e20b36b..5137e989b8d 100644
--- a/source/blender/python/api2_2x/Text3d.c
+++ b/source/blender/python/api2_2x/Text3d.c
@@ -37,6 +37,7 @@
#include "BKE_library.h"
#include "BKE_global.h"
#include "BKE_main.h"
+#include "BKE_utildefines.h"
#include "BIF_editfont.h" /* do_textedit() */
#include "Curve.h"
#include "constant.h"
@@ -255,7 +256,7 @@ static PyObject *getFloatAttr( BPy_Text3d *self, void *type )
float param;
struct Curve *curve= self->curve;
- switch( (int)type ) {
+ switch( GET_INT_FROM_POINTER(type) ) {
case EXPP_T3D_ATTR_FRAME_WIDTH:
param = curve->tb[curve->actbox-1].w;
break;
@@ -282,7 +283,7 @@ static int setFloatAttrClamp( BPy_Text3d *self, PyObject *value, void *type )
struct Curve *curve= self->curve;
float min, max;
- switch( (int)type ) {
+ switch( GET_INT_FROM_POINTER(type) ) {
case EXPP_T3D_ATTR_FRAME_WIDTH:
min = 0.0;
max = 50.0;