Update of /cvsroot/monetdb/MonetDB5/src/mal
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv3323/mal
Modified Files:
mal_builder.mx
Log Message:
Properly initialize a nil bat value.
Index: mal_builder.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/mal/mal_builder.mx,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- mal_builder.mx 29 Oct 2007 20:09:55 -0000 1.27
+++ mal_builder.mx 27 Dec 2007 12:35:01 -0000 1.28
@@ -292,14 +292,16 @@
int _t;
ValRecord cst;
- cst.vtype=TYPE_void;
- cst.val.oval= oid_nil;
if( !isaBatType(tpe) ){
+ cst.vtype=TYPE_void;
+ cst.val.oval= oid_nil;
convertConstant(tpe, &cst);
_t = defConstant(mb,tpe,&cst);
- } else
- _t = newTmpVariable(mb,tpe);
-
+ } else{
+ cst.vtype=TYPE_bat;
+ cst.val.bval= 0;
+ _t = defConstant(mb,TYPE_bat,&cst);
+ }
return pushArgument(mb, q, _t);
}
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins