>
> 64 bit machines and compilers were rare back in 2002. Obviously, the Judy
> code was
> not tested in 64 bit with "-DSEARCH_LINEAR" defined. It was released with
> with
> "-DSEARCH_BINARY" which means the bug at line 523 would of not be caught.
>
> Instead of "JU_COPY3_PINDEX_TO_LONG(i_ndex, P_leaf);" it should of been
> "COPYINDEX(i_ndex, P_leaf);" on line 523.
>
> It works in 32 bit because the only "NONNAT" Leaf is 3, whereas 64bit has
> 3,5,6,7.
>
> If this does not work, feel free to email me and I will take the time to try
> it out.
Er specifically is there a bug to be fixed?
[I dont know off hand how we build Judy]
> be faster in the future. That is why it was released that way. However, in
> 15 years
> of testing, we have discovered a lot of things on how computers really work.
Except .. they mutate so just when you think you learned something,
you’re knowledge is out of date. They’re a true virus!
> [My question deals with an issue in JudyPrivate.h not directly addressed by
> the Wiki page version of the file. Using VC2013 (or Pelles C), lines 1586,
> 1593, and 1600 reference defined code which raises warning 4293 (shift too
> large) due to the fact that *something* which should be a Word_T (unsigned
> long long) is being treated instead as an unsigned long. I’ve stared at this
> for a while and don’t see anything obvious… but I may just be tired. In any
> event, everything is fine with 32 bit… and the first insertion works on 64
> bit; however, subsequent insertions appear to work but indeed do not.]
I haven’t seen that, i build Judy on Windows regularly, but I use a version I
modified
myself. Basically almost all the constants written
~1L
are wrong. The correction is universal:
~(intptr_t)1
Also, there’s a small patch so when built as a DLL only the public symbols
are exported.
https://github.com/felix-lang/felix/tree/master/src/judy
Contains my fixed up version. No assurance I did it right though,
since I didn’t and still don’t understand how it works.
—
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