Hmm .. that’s WERID:
switch (IndexSize)
{
case 1: JU_CHECKSORTED(uint8_t *);
case 2: JU_CHECKSORTED(uint16_t *);
case 3: JU_CHECKSORTED_ODD(JU_COPY3_PINDEX_TO_LONG);
case 4: JU_CHECKSORTED(uint32_t *);
#ifdef JU_64BIT
case 5: JU_CHECKSORTED_ODD(JU_COPY5_PINDEX_TO_LONG);
case 6: JU_CHECKSORTED_ODD(JU_COPY6_PINDEX_TO_LONG);
case 7: JU_CHECKSORTED_ODD(JU_COPY7_PINDEX_TO_LONG);
case 8: JU_CHECKSORTED(Pjlw_t);
#endif
default:
fprintf(stderr, "JU_CHECKSORTED_ODD: Bad index size %ld\n",IndexSize);
assert(FALSE); // invalid IndexSize.
}
It’s printing 8! How can that possibly happen when:
#define JU_CHECKSORTED(PType) \
while (--Pop1 > 0) \
assert(((PType) Pjll)[Pop1 - 1] < ((PType) Pjll)[Pop1]); \
break
There is ONLY one way that this can happen: JU_64BIT is not set.
on OSX:
Its clearly set.
Hmm .. now I get this on OSX:
Assertion failed: ((JU_ERRNO_CORRUPT) != JU_ERRNO_CORRUPT), function
j__udyInsWalk, file
build/release/share/src/judy/src/JudyL/../JudyCommon/JudyIns.c, line 1627.
—
john skaller
[email protected]
http://felix-lang.org
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Judy-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/judy-devel