Update of /cvsroot/monetdb/pathfinder/modules/pftijah
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv10231
Modified Files:
pftijah.mx
Log Message:
- try to repair pftijah "testcoll2" bug on 64bit archs
Index: pftijah.mx
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/modules/pftijah/pftijah.mx,v
retrieving revision 1.123
retrieving revision 1.124
diff -u -d -r1.123 -r1.124
--- pftijah.mx 25 May 2007 12:34:24 -0000 1.123
+++ pftijah.mx 29 May 2007 12:20:18 -0000 1.124
@@ -3267,15 +3267,16 @@
return GDK_FAIL;
}
- doc_start = *(oid*)BUNtail(doc_firstpre,r);
- oid tj_nextIndex = tj_docIndex + 1;
+ // 64bit ERROR?? doc_start = *(oid*)BUNtail(doc_firstpre,r);
+ doc_start = (oid)*(int*)BUNtail(doc_firstpre,r);
+ oid tj_nextIndex = tj_docIndex + (oid)1;
if ( BATcount(doc_firstpre) > tj_nextIndex ) {
r = BUNfnd(doc_firstpre,&tj_nextIndex);
if ( !r ) {
stream_printf(GDKout,"Cannot do range for
tijah-firstpre @ %d.\n",tj_docIndex);
return GDK_FAIL;
}
- doc_end = *(oid*)BUNtail(doc_firstpre,r) - 1;
+ doc_end = *(oid*)BUNtail(doc_firstpre,r) - (oid)1;
} else {
doc_end = oid_nil;
}
-------------------------------------------------------------------------
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-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins