[Numpy-svn] r4999 - trunk/numpy/linalg

numpy-svn@scip... numpy-svn@scip...
Wed Apr 9 09:58:46 CDT 2008


Author: pearu
Date: 2008-04-09 09:58:30 -0500 (Wed, 09 Apr 2008)
New Revision: 4999

Modified:
   trunk/numpy/linalg/pythonxerbla.c
   trunk/numpy/linalg/setup.py
Log:
Fixing compile error from MSVC.

Modified: trunk/numpy/linalg/pythonxerbla.c
===================================================================
--- trunk/numpy/linalg/pythonxerbla.c	2008-04-09 14:47:44 UTC (rev 4998)
+++ trunk/numpy/linalg/pythonxerbla.c	2008-04-09 14:58:30 UTC (rev 4999)
@@ -20,7 +20,7 @@
 {
 	const char* format = "On entry to %.*s" \
 		" parameter number %d had an illegal value";
-	char buf[strlen(format) + 6 + 4]; /* 6 for name, 4 for param. num. */
+	char buf[60 + 6 + 4]; /* 6 for name, 4 for param. num. */
 	
 	int len = 0; /* length of subroutine name*/
 	while( len<6 && srname[len]!='\0' )

Modified: trunk/numpy/linalg/setup.py
===================================================================
--- trunk/numpy/linalg/setup.py	2008-04-09 14:47:44 UTC (rev 4998)
+++ trunk/numpy/linalg/setup.py	2008-04-09 14:58:30 UTC (rev 4999)
@@ -7,7 +7,7 @@
     config.add_data_dir('tests')
 
     # Configure lapack_lite
-    lapack_info = get_info('lapack_opt',0)
+    lapack_info = get_info('lapack_opt',0) # and {}
     def get_lapack_lite_sources(ext, build_dir):
         if not lapack_info:
             print "### Warning:  Using unoptimized lapack ###"



More information about the Numpy-svn mailing list