From: john skaller <firstname.lastname@example.org>
To: "Bisht, Pradeep" <email@example.com>
Sent: Sat, February 5, 2011 9:20:56 AM
Subject: Re: Judy on 64-bit windows;
On 05/02/2011, at 7:21 PM, Bisht, Pradeep wrote:
> finally i get to make my program work. there were some more 1L in JudyPrivate.h which needed to be changed to 1LL (the proper word size on 64-bit windows).
You mean these?
#define JU_BITPOSMASKB(BITNUM) (1L << ((BITNUM) % cJU_BITSPERSUBEXPB))
#define JU_BITPOSMASKL(BITNUM) (1L << ((BITNUM) % cJU_BITSPERSUBEXPL))
> Is there any regression suite that I can run make sure I have not
broken anything? Also I would like to give back to community this code which now works on windows 64-bit - is there way I can do it. Thanks.
Well, you don't have a portable solution here: you cannot use lLL. The right way to do this is:
with a cast, that's portable.