[Scipy-svn] r2949 - trunk/Lib/sandbox/numexpr

scipy-svn@scip... scipy-svn@scip...
Mon Apr 30 11:12:54 CDT 2007


Author: cookedm
Date: 2007-04-30 11:12:50 -0500 (Mon, 30 Apr 2007)
New Revision: 2949

Modified:
   trunk/Lib/sandbox/numexpr/interpreter.c
Log:
[numexpr] change op_signature to return an int instead of char


Modified: trunk/Lib/sandbox/numexpr/interpreter.c
===================================================================
--- trunk/Lib/sandbox/numexpr/interpreter.c	2007-04-30 14:49:05 UTC (rev 2948)
+++ trunk/Lib/sandbox/numexpr/interpreter.c	2007-04-30 16:12:50 UTC (rev 2949)
@@ -103,7 +103,7 @@
 };
 
 /* returns the sig of the nth op, '\0' if no more ops -1 on failure */
-static char op_signature(int op, int n) {
+static int op_signature(int op, int n) {
     switch (op) {
         case OP_NOOP:
             break;
@@ -512,8 +512,8 @@
 {
     unsigned char *program;
     Py_ssize_t prog_len, n_buffers, n_inputs;
-    int rno, pc, arg, argloc, argno;
-    char sig, *fullsig, *signature;
+    int rno, pc, arg, argloc, argno, sig;
+    char *fullsig, *signature;
 
     if (PyString_AsStringAndSize(self->program, (char **)&program,
                                  &prog_len) < 0) {



More information about the Scipy-svn mailing list