rename and negate DISABLE_PYTHON --> WITH_PYTHON
[blender.git] / source / gameengine / Expressions / FloatValue.h
index 442f0eb6cf803db1c0310f95b994a3bb7a0d09ae..83b9ff1db5e0c4721fe8ed10de6267953aed322a 100644 (file)
@@ -36,7 +36,9 @@ public:
        virtual CValue* GetReplica();
        virtual CValue* Calc(VALUE_OPERATOR op, CValue *val);
        virtual CValue* CalcFinal(VALUE_DATA_TYPE dtype, VALUE_OPERATOR op, CValue *val);
+#ifdef WITH_PYTHON
        virtual PyObject*       ConvertValueToPython();
+#endif
 
 protected:
        float m_float;
@@ -45,7 +47,7 @@ protected:
 
 #ifdef WITH_CXX_GUARDEDALLOC
 public:
-       void *operator new( unsigned int num_bytes) { return MEM_mallocN(num_bytes, "GE:CFloatValue"); }
+       void *operator new(size_t num_bytes) { return MEM_mallocN(num_bytes, "GE:CFloatValue"); }
        void operator delete( void *mem ) { MEM_freeN(mem); }
 #endif
 };