Update of /cvsroot/monetdb/MonetDB5/src/mal
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv20701

Modified Files:
        mal_parser.mx 
Log Message:
Undo -r1.195 -r1.196

This commit was intended to solve the GDK casts test on Darwin/PPC and
Solaris/Sparc.  However it does not, since the real problem is in the
PPC and Sparc (big-endian) chips representing doubles internally in such
a way that more precision is lost than on other architectures.  The
problem is hence not caused by (M5) software, but the respective chips'
double handling.


Index: mal_parser.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/mal/mal_parser.mx,v
retrieving revision 1.197
retrieving revision 1.198
diff -u -d -r1.197 -r1.198
--- mal_parser.mx       24 May 2007 20:14:14 -0000      1.197
+++ mal_parser.mx       26 May 2007 11:54:09 -0000      1.198
@@ -419,7 +419,6 @@
        int hex=0;
        str s = CURRENT(cntxt);
 
-       memset((char*)cst, 0, sizeof(ValRecord));
        cst->vtype = TYPE_int;
        switch(*s){
        case '"':
@@ -735,7 +734,6 @@
 
        if (*v != '\'')
                return 0;
-       memset((char*)cst, 0, sizeof(ValRecord));
        cst->vtype = TYPE_chr;
        cst->val.cval[1]= 0;
        cst->val.cval[2]= 0;


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to