[ragel-users] ragel hex codes on x86_64
Adrian Thurston
thurston at complang.org
Fri Jan 23 17:28:39 UTC 2009
That's the fix. I just verified it. Thanks _why and William!
Adrian
William Morgan wrote:
> This patch fixes it for me:
>
> --- ragel/parsedata.cpp (revision 660)
> +++ ragel/parsedata.cpp (working copy)
> @@ -116,7 +116,7 @@
> }
>
> if ( unusedBits && keyOps->alphType->isSigned && ul >> (size * 8 - 1) )
> - ul |= (0xffffffff >> (size*8 ) ) << (size*8);
> + ul |= (-1L >> (size*8 ) ) << (size*8);
>
> return Key( (long)ul );
> }
>
> Apologies for the lack of proper threading on this message.
More information about the ragel-users
mailing list