[ragel-users] ragel hex codes on x86_64

William Morgan wmorgan-ragel at masanjin.net
Sat Jan 17 00:50:05 UTC 2009


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.
-- 
William <wmorgan-ragel at masanjin.net>




More information about the ragel-users mailing list