Update of /cvsroot/monetdb/sql/src/backends/monet5
In directory
sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv22956/sql/src/backends/monet5
Modified Files:
sql.mx
Log Message:
Add some casts.
Index: sql.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet5/sql.mx,v
retrieving revision 1.384
retrieving revision 1.385
diff -u -d -r1.384 -r1.385
--- sql.mx 2 Jan 2010 15:13:44 -0000 1.384
+++ sql.mx 7 Jan 2010 13:12:12 -0000 1.385
@@ -3739,14 +3739,14 @@
bn->T->nonil= b->T->nonil;
if ( b->T->nonil){
for (; p<q; p++)
- *o = *p/scales[scale];
+ *o = (@1) (*p/scales[scale]);
} else{
for (; p<q; p++) {
if (*p == @2_nil) {
*o = @1_nil;
bn->T->nonil= FALSE;
} else
- *o = *p/scales[scale];
+ *o = (@1) (*p/scales[scale]);
}
}
BATsetcount(bn, BATcount(b));
@@ -3925,7 +3925,7 @@
bn->T->nonil= b->T->nonil;
if ( b->T->nonil){
for (; p<q; p++) {
- val = (*p+ (*p<0)?-5:5)/scales[scale];
+ val = (@2) ((*p+ (*p<0)?-5:5)/scales[scale]);
/* see if the number fits in the data type */
if (val > g...@1_min && val <= g...@1_max)
*o = (@1)val;
@@ -3941,7 +3941,7 @@
*o = @1_nil;
bn->T->nonil= FALSE;
} else {
- val = ( *p + ( *p<0)?-5:5)/scales[scale];
+ val = (@2) (( *p + ( *p<0)?-5:5)/scales[scale]);
/* see if the number fits in the data type */
if (val > g...@1_min && val <= g...@1_max)
*o = (@1)val;
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins