On 31/10/2011, at 1:44 PM, John Tromp wrote: > hi John, > >> Hmm .. what am I doing wrong here? This is a simple C program... > > May be a problem with your Judy installation.
Yes. That seems likely (since we use our own build script written in Python). > I runs fine on my brand new MacBook Air with > gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00) > and judy-1.0.5 in 64 bit mode. > Last 3 lines of output: > found XX 0997 abcdefg -> 997 > found XX 0998 abcdefg -> 998 > found XX 0999 abcdefg -> 999 I have played around with it, and using memset to clear buffer, changing the sprintf to use %016d, %d, or various things makes a huge mess of the keys. Indeed if all the strings are the same length it seems to work. I even got this: found XX 1 -> 0 found XX 2 -> 81 found XX 3 -> 780 found XX 4 -> 117 found XX 5 -> 466 found XX 6 -> 419 found XX 7 -> 444 found XX 8 -> 785 found XX 9 -> 346 (exit here) when memset buffer to all 0 (and no error ..). BTW: ~/felix>gcc --version i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3) I'd sure love to get C++1x for OSX... need LLVM compiler for that though? -- john skaller skal...@users.sourceforge.net ------------------------------------------------------------------------------ Get your Android app more play: Bring it to the BlackBerry PlayBook in minutes. BlackBerry App World™ now supports Android™ Apps for the BlackBerry® PlayBook™. Discover just how easy and simple it is! http://p.sf.net/sfu/android-dev2dev _______________________________________________ Felix-language mailing list Felix-language@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/felix-language