[Numpy-svn] r6488 - trunk/numpy/core

numpy-svn@scip... numpy-svn@scip...
Thu Feb 26 06:38:01 CST 2009


Author: cdavid
Date: 2009-02-26 06:37:57 -0600 (Thu, 26 Feb 2009)
New Revision: 6488

Modified:
   trunk/numpy/core/setup.py
Log:
BUG: forgot to add sizeof check for long long type when PY_LONG_LONG is defined.

Modified: trunk/numpy/core/setup.py
===================================================================
--- trunk/numpy/core/setup.py	2009-02-26 12:37:39 UTC (rev 6487)
+++ trunk/numpy/core/setup.py	2009-02-26 12:37:57 UTC (rev 6488)
@@ -177,6 +177,13 @@
         else:
             raise SystemError("Checking sizeof (%s) failed !" % 'PY_LONG_LONG')
 
+        res = config_cmd.check_type_size('long long')
+        if res >= 0:
+            private_defines.append(('SIZEOF_%s' % sym2def('long long'), '%d' % res))
+            public_defines.append(('NPY_SIZEOF_%s' % 'LONGLONG', '%d' % res))
+        else:
+            raise SystemError("Checking sizeof (%s) failed !" % 'long long')
+
     if not config_cmd.check_decl('CHAR_BIT', headers=['Python.h']):
         raise RuntimeError(
             "Config wo CHAR_BIT is not supported"\



More information about the Numpy-svn mailing list