Use strtoll() for hex literals to handle 64-bit ones even on 32-bit.

This commit is contained in:
Bob Nystrom
2017-01-12 21:53:21 -08:00
parent 0cc00c41c0
commit 5ddd783ff5
3 changed files with 16 additions and 9 deletions

View File

@ -130,9 +130,8 @@ class Literals is SyntaxExample {
1.0
-12.34
0x1000000
// Literals larger than 0x1000000 are only valid in 64 bit builds
// 0xdeadbeef
// 0x1234567890ABCDEF
0xdeadbeef
0x1234567890ABCDEF
}
strings {