[Numpy-svn] r3873 - trunk/numpy/doc/swig

numpy-svn@scip... numpy-svn@scip...
Sun Jun 17 13:18:33 CDT 2007


Author: wfspotz@sandia.gov
Date: 2007-06-17 13:18:22 -0500 (Sun, 17 Jun 2007)
New Revision: 3873

Modified:
   trunk/numpy/doc/swig/numpy.i
Log:
Fixed format string warning

Modified: trunk/numpy/doc/swig/numpy.i
===================================================================
--- trunk/numpy/doc/swig/numpy.i	2007-06-16 08:44:24 UTC (rev 3872)
+++ trunk/numpy/doc/swig/numpy.i	2007-06-17 18:18:22 UTC (rev 3873)
@@ -292,14 +292,14 @@
       }
       else
       {
-	sprintf(s, "%d,", size[i]);                
+	sprintf(s, "%ld,", (long int)size[i]);                
       }    
       strcat(desired_dims,s);
     }
     len = strlen(desired_dims);
     desired_dims[len-1] = ']';
     for (i = 0; i < n; i++) {
-      sprintf(s, "%d,", array_size(ary,i));                            
+      sprintf(s, "%ld,", (long int)array_size(ary,i));                            
       strcat(actual_dims,s);
     }
     len = strlen(actual_dims);



More information about the Numpy-svn mailing list