Changeset: 159f96e96564 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=159f96e96564
Modified Files:
        MonetDB5/src/optimizer/opt_support.mx
Branch: default
Log Message:

Compilation fixes.
It's been more than 20 years that index is called strchr...
If you want to shift more than 32 bits, make sure you're shifting a
value that has more than 32 bits.


diffs (21 lines):

diff -r 24d6620655f2 -r 159f96e96564 MonetDB5/src/optimizer/opt_support.mx
--- a/MonetDB5/src/optimizer/opt_support.mx     Mon Jul 19 10:20:54 2010 +0200
+++ b/MonetDB5/src/optimizer/opt_support.mx     Mon Jul 19 11:00:48 2010 +0200
@@ -569,7 +569,7 @@
 #define DEBUG_OPT_TRACE                                48
 #define DEBUG_OPT_HEURISTIC                    49
 
-#define DEBUG_OPT(X) ( 1 << (X))
+#define DEBUG_OPT(X) ((lng) 1 << (X))
 opt_export lng optDebug;
 
 opt_export str MALoptimizer(Client c);
@@ -759,7 +759,7 @@
                }
        }
        for ( t = s = name; t && *t ; t = s){
-               s = index(s,',');
+               s = strchr(s,',');
                if ( s ) *s++ = 0;
                for ( i=0; optcatalog[i].name; i++)
                if ( strcmp(t,optcatalog[i].name) == 0){
_______________________________________________
Checkin-list mailing list
Checkin-list@monetdb.org
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to