mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-21 16:47:28 +01:00
Bounds check "x >> y".
This commit is contained in:
1 parent
51da37c661
commit
5a0aea66a3
4 files changed
+29
No files matched your search
@@ -3,6 +3,10 @@
|
||||
|
||||
package token
|
||||
|
||||
// MaxIntBits is the largest size (in bits) of the i8, u8, i16, u16, etc.
|
||||
// integer types.
|
||||
const MaxIntBits = 64
|
||||
|
||||
// Flags are the low 16 bits of an ID. For example, they signify whether a
|
||||
// token is an operator, an identifier, etc.
|
||||
//
|
||||
@@ -471,6 +475,8 @@ var builtInsByKey = [nBuiltInKeys]struct {
|
||||
KeyTrue: {"true", IDTrue},
|
||||
KeyZero: {"0", IDZero},
|
||||
|
||||
// Change MaxIntBits if a future update adds an i128 or u128 type.
|
||||
|
||||
KeyI8: {"i8", IDI8},
|
||||
KeyI16: {"i16", IDI16},
|
||||
KeyI32: {"i32", IDI32},
|
||||
|
||||
Reference in new issue
Block a user