mirror of
https://github.com/github/semantic.git
synced 2024-12-20 21:31:48 +03:00
stylin
This commit is contained in:
parent
3f3825539c
commit
8aad872c24
@ -236,8 +236,7 @@ instance ( Member (Reader ModuleInfo) sig
|
|||||||
LiftBitwise2 operator (Integer (Number.Integer i)) (Integer (Number.Integer j)) k -> runBitwiseC . k . Integer . Number.Integer $ operator i j
|
LiftBitwise2 operator (Integer (Number.Integer i)) (Integer (Number.Integer j)) k -> runBitwiseC . k . Integer . Number.Integer $ operator i j
|
||||||
LiftBitwise2 _ left right k -> throwBaseError (Bitwise2Error left right) >>= runBitwiseC . k
|
LiftBitwise2 _ left right k -> throwBaseError (Bitwise2Error left right) >>= runBitwiseC . k
|
||||||
UnsignedRShift (Integer (Number.Integer i)) (Integer (Number.Integer j)) k | i >= 0 -> runBitwiseC . k . Integer . Number.Integer $ ourShift (fromIntegral i) (fromIntegral j)
|
UnsignedRShift (Integer (Number.Integer i)) (Integer (Number.Integer j)) k | i >= 0 -> runBitwiseC . k . Integer . Number.Integer $ ourShift (fromIntegral i) (fromIntegral j)
|
||||||
UnsignedRShift left right k -> throwBaseError (Bitwise2Error left right) >>= runBitwiseC . k
|
UnsignedRShift left right k -> throwBaseError (Bitwise2Error left right) >>= runBitwiseC . k)
|
||||||
)
|
|
||||||
|
|
||||||
ourShift :: Word64 -> Int -> Integer
|
ourShift :: Word64 -> Int -> Integer
|
||||||
ourShift a b = toInteger (shiftR a b)
|
ourShift a b = toInteger (shiftR a b)
|
||||||
|
Loading…
Reference in New Issue
Block a user