Judy1 fails if compiled with latest gcc 4.9.
for (i=1;i<50000000;i++) {
J1S(Rc_int, J1Array, Index); // set bit at 123456
if (Rc_int == JERR) printf("ERR - malloc\n");
if (Rc_int == 0) printf("BUG - bit already set at %lu\n", Index);
}
BUG - bit already set at 16777352
BUG - bit already set at 33554568
With O0, it works (stupid patch attached).
Guillaume
Guillaume:
The enclosed patched JudyPrivateBranch.h file will allow GCC to compile Judy with all options. (-O2 preferred).
Doug -- author of Judy
Doug Baskins dougbaskins@yahoo.com
On Wednesday, July 23, 2014 12:14 PM, Guillaume Fougnies guillaume_f@users.sf.net wrote:
Related
Patches: #5
Hello Doug,
The patch works nicely.
Thanks a lot. Judy array is amazing.
Regards,
Guillaume