| 1 |
Description: Fix FTBFS on 32-bit arches (overflow error) |
| 2 |
Author: Scott Talbert |
| 3 |
Forwarded: no |
| 4 |
|
| 5 |
--- a/src/Xeno/SAX.hs |
| 6 |
+++ b/src/Xeno/SAX.hs |
| 7 |
@@ -29,6 +29,7 @@ import qualified Data.ByteString.Char8 a |
| 8 |
import qualified Data.ByteString.Unsafe as SU |
| 9 |
import Data.Char (isSpace) |
| 10 |
import Data.Functor.Identity (Identity(..)) |
| 11 |
+import Data.Int (Int64) |
| 12 |
import Data.Semigroup () |
| 13 |
import Data.STRef (newSTRef, modifySTRef', readSTRef) |
| 14 |
import Data.Word (Word8, Word64) |
| 15 |
@@ -402,7 +403,7 @@ elemIndexFrom c str offset = fmap (+ off |
| 16 |
-- Character types |
| 17 |
|
| 18 |
isSpaceChar :: Word8 -> Bool |
| 19 |
-isSpaceChar = testBit (0b100000000000000000010011000000000 :: Int) . fromIntegral |
| 20 |
+isSpaceChar = testBit (0b100000000000000000010011000000000 :: Int64) . fromIntegral |
| 21 |
-- | | || bits: |
| 22 |
-- | | |+-- 9 |
| 23 |
-- | | +--- 10 |