Update of /cvsroot/monetdb/MonetDB/src/gdk
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv29075/src/gdk

Modified Files:
        gdk_utils.mx 
Log Message:
roundup to multiples of 8 also in realloc


Index: gdk_utils.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB/src/gdk/gdk_utils.mx,v
retrieving revision 1.186
retrieving revision 1.187
diff -u -d -r1.186 -r1.187
--- gdk_utils.mx        29 May 2007 20:59:52 -0000      1.186
+++ gdk_utils.mx        2 Jun 2007 09:54:12 -0000       1.187
@@ -1159,8 +1159,7 @@
        if (size <= 0) {
                GDKfatal("GDKreallocmax: called with size %u", size);
        }
-       /* round up to a multiple of four */
-       size = (size + 3) & ~3;
+       size = (size + 7) & ~7; /* round up to a multiple of eight */
        oldsize = GDK_MEM_BLKSIZE(s);
 
        /* check against duplicate free */


-------------------------------------------------------------------------
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-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to