[Numpy-svn] r3441 - in trunk/numpy: core/src numarray/numpy

numpy-svn at scipy.org numpy-svn at scipy.org
Thu Nov 16 18:45:41 CST 2006


Author: oliphant
Date: 2006-11-16 18:45:36 -0600 (Thu, 16 Nov 2006)
New Revision: 3441

Modified:
   trunk/numpy/core/src/scalarmathmodule.c.src
   trunk/numpy/numarray/numpy/arraybase.h
Log:
Fix some compiler errors.

Modified: trunk/numpy/core/src/scalarmathmodule.c.src
===================================================================
--- trunk/numpy/core/src/scalarmathmodule.c.src	2006-11-17 00:33:28 UTC (rev 3440)
+++ trunk/numpy/core/src/scalarmathmodule.c.src	2006-11-17 00:45:36 UTC (rev 3441)
@@ -156,6 +156,10 @@
 }
 /**end repeat**/
 
+#ifndef SIZEOF_BYTE
+#define SIZEOF_BYTE 1
+#endif
+
 /**begin repeat
    #name=byte,ubyte,short,ushort,int,uint,long,ulong#
    #big=(int,uint)*2,(longlong,ulonglong)*2#

Modified: trunk/numpy/numarray/numpy/arraybase.h
===================================================================
--- trunk/numpy/numarray/numpy/arraybase.h	2006-11-17 00:33:28 UTC (rev 3440)
+++ trunk/numpy/numarray/numpy/arraybase.h	2006-11-17 00:45:36 UTC (rev 3441)
@@ -37,7 +37,7 @@
   tObject=PyArray_OBJECT,        /* placeholder... does nothing */
   tMaxType=PyArray_NTYPES,
   tDefault = tFloat64,
-#if BITSOF_LONG == 64
+#if NPY_BITSOF_LONG == 64
   tLong = tInt64,
 #else
   tLong = tInt32,



More information about the Numpy-svn mailing list