Update of /cvsroot/monetdb/pathfinder/modules/pftijah
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv3924

Modified Files:
        pftijah.mx 
Log Message:
- repair another doc_firstpre access
- undo unnecessary (oid)1 casts



Index: pftijah.mx
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/modules/pftijah/pftijah.mx,v
retrieving revision 1.124
retrieving revision 1.125
diff -u -d -r1.124 -r1.125
--- pftijah.mx  29 May 2007 12:20:18 -0000      1.124
+++ pftijah.mx  29 May 2007 14:18:01 -0000      1.125
@@ -3269,14 +3269,14 @@
 
                    // 64bit ERROR?? doc_start = *(oid*)BUNtail(doc_firstpre,r);
                    doc_start = (oid)*(int*)BUNtail(doc_firstpre,r);
-                   oid tj_nextIndex = tj_docIndex +  (oid)1;
+                   oid tj_nextIndex = tj_docIndex +  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) - (oid)1;
+                       doc_end = (oid)*(int*)BUNtail(doc_firstpre,r) - 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

Reply via email to