Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

at least 53-bit floating point numbers are required #13

Open
baditaflorin opened this issue Sep 10, 2024 · 1 comment
Open

at least 53-bit floating point numbers are required #13

baditaflorin opened this issue Sep 10, 2024 · 1 comment

Comments

@baditaflorin
Copy link

2024/09/10 17:17:42 Failed to load Lua script: failed to load Lua script: ./sha2.lua:87: at least 53-bit floating point numbers are required
stack traceback:
[G]: in function 'assert'
./sha2.lua:87: in function <./sha2.lua:0>

 lua -v
Lua 5.4.7  Copyright (C) 1994-2024 Lua.org, PUC-Rio

@Egor-Skriptunoff
Copy link
Owner

This may happen if you have built your Lua with 32-bit flag (LUA_32BITS) which uses 32-bit floats as Lua numbers instead of 64-bit doubles.
The "sha2.lua" requires 64-bit doubles.
Try print(math.pi) - you should see 3.1415926535898 if Lua numbers are double.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants