Changeset: 1109b5be9967 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=1109b5be9967
Modified Files:
monetdb5/optimizer/opt_mosaic.c
Branch: mosaic
Log Message:
OPTmosaicImplementation(): use type signed char iso. char
To ensure proper & correct handling (assignement & comparison)
of both positive & negative values, we need to make sure we
use signed char rather than "plain" char (which might be unsigned
depending on the compiler used).
In fact, for single-byte signed numbers, we might want to consider
using type bte rather than (signed) char --- in general, not only
in this case ...
diffs (12 lines):
diff --git a/monetdb5/optimizer/opt_mosaic.c b/monetdb5/optimizer/opt_mosaic.c
--- a/monetdb5/optimizer/opt_mosaic.c
+++ b/monetdb5/optimizer/opt_mosaic.c
@@ -50,7 +50,7 @@ OPTmosaicImplementation(Client cntxt, Ma
{
InstrPtr p,q, *old;
int limit,i,j, k, target=0;
- char *check;
+ signed char *check;
check = GDKzalloc(mb->vsize);
if ( check == NULL)
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list