mirror of
https://github.com/notwa/lips
synced 2024-11-14 19:39:03 -08:00
Revert "add a warning about integer precision in Lua"
This reverts commit 5544c5226b
.
This commit is contained in:
parent
c27aaa4008
commit
91533bc083
1 changed files with 0 additions and 17 deletions
17
README.md
17
README.md
|
@ -9,23 +9,6 @@ It does little more than output hex.
|
||||||
Not for production. Much of the code and syntax is untested and likely to change.
|
Not for production. Much of the code and syntax is untested and likely to change.
|
||||||
Even this README is incomplete.
|
Even this README is incomplete.
|
||||||
|
|
||||||
## Integer Precision
|
|
||||||
|
|
||||||
**Please note:** some builds of Lua cannot precisely handle integers
|
|
||||||
larger than 24 bits. This can cause errorenous instructions to be assembled.
|
|
||||||
LuaJIT and Lua 5.3 shouldn't have this issue by default.
|
|
||||||
|
|
||||||
Just to be safe, try running the following script:
|
|
||||||
|
|
||||||
```
|
|
||||||
local precise = 0x1000000 + 1 ~= 0x1000000
|
|
||||||
if precise then
|
|
||||||
print("You're all set!")
|
|
||||||
else
|
|
||||||
print("You will have a bad time.")
|
|
||||||
end
|
|
||||||
```
|
|
||||||
|
|
||||||
## Syntax
|
## Syntax
|
||||||
|
|
||||||
(TODO)
|
(TODO)
|
||||||
|
|
Loading…
Reference in a new issue