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

scipy-svn@scip... scipy-svn@scip...
Sat Jul 7 11:38:55 CDT 2007


Author: tim_hochberg
Date: 2007-07-07 11:38:51 -0500 (Sat, 07 Jul 2007)
New Revision: 3147

Modified:
   trunk/Lib/sandbox/numexpr/interp_body.c
Log:


Modified: trunk/Lib/sandbox/numexpr/interp_body.c
===================================================================
--- trunk/Lib/sandbox/numexpr/interp_body.c	2007-07-07 08:27:06 UTC (rev 3146)
+++ trunk/Lib/sandbox/numexpr/interp_body.c	2007-07-07 16:38:51 UTC (rev 3147)
@@ -89,6 +89,11 @@
         unsigned int arg2 = params.program[pc+3];
         #define      arg3   params.program[pc+5]
         #define store_index params.index_data[store_in]
+        
+       /* WARNING: From now on, only do references to params.mem[arg[123]]
+         & params.memsteps[arg[123]] inside the VEC_ARG[123] macros,
+          or you will risk accessing invalid addresses.  */
+        
         #define reduce_ptr  (dest + flat_index(&store_index, j))
         #define i_reduce    *(long *)reduce_ptr
         #define f_reduce    *(double *)reduce_ptr



More information about the Scipy-svn mailing list