Update of /cvsroot/monetdb/sql/src/storage/restrict
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv6628/src/storage/restrict

Modified Files:
        restrict_storage.mx 
Log Message:

use assertion only when necessary;
should keep compilers from (correctly!) complaining about
"comparison is always true due to limited range of data type"


U restrict_storage.mx
Index: restrict_storage.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/storage/restrict/restrict_storage.mx,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- restrict_storage.mx 31 Aug 2008 22:10:49 -0000      1.9
+++ restrict_storage.mx 1 Sep 2008 05:26:07 -0000       1.10
@@ -153,7 +153,10 @@
                }
                bat_destroy(u);
        }
-       assert(rid > 0 && (lng) rid <= (lng) GDK_oid_max);
+       assert(rid > 0);
+#if SIZEOF_OID < SIZEOF_SSIZE_T
+       assert((lng) rid <= (lng) GDK_oid_max);
+#endif
        void_inplace(b, (oid)rid, upd, TRUE);
        bat_destroy(b);
 }


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to