Update of /cvsroot/monetdb/sql/src/backends/monet4
In directory 
sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv5473/sql/src/backends/monet4

Modified Files:
        sql_server.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 sql_server.mx
Index: sql_server.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet4/sql_server.mx,v
retrieving revision 1.204
retrieving revision 1.205
diff -u -d -r1.204 -r1.205
--- sql_server.mx       31 Aug 2008 21:56:25 -0000      1.204
+++ sql_server.mx       2 Sep 2008 07:28:52 -0000       1.205
@@ -1003,7 +1003,9 @@
        int scale = digits - (int)(dot-s);
        lng value = 0;
 
+#if SIZEOF_INT < SIZEOF_PTRDIFF_T
        assert((lng) GDK_int_min <= (lng) (dot-s) && (lng) (dot-s) <= (lng) 
GDK_int_max);
+#endif
 
        if (!dot) {
                if (GDK_STRNIL(val)) {


-------------------------------------------------------------------------
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