mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 16:52:18 +01:00
Check "x = 0".
This commit is contained in:
1 parent
1dd51ac30f
commit
188f0e9e3b
4 files changed
+18
-40
No files matched your search
@@ -138,6 +138,8 @@ func (c *Checker) checkFuncBody(n *a.Node) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// TODO: use numTypeRanges.
|
||||
|
||||
var numTypeRanges = [256][2]*big.Int{
|
||||
t.IDI8 >> t.KeyShift: {big.NewInt(-1 << 7), big.NewInt(1<<7 - 1)},
|
||||
t.IDI16 >> t.KeyShift: {big.NewInt(-1 << 15), big.NewInt(1<<15 - 1)},
|
||||
|
||||
Reference in new issue
Block a user