You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You must post issues only here. Questions, ideas must be posted in discussions.
GopherLua is a Lua5.1 implementation. You should be familiar with Lua programming language. Have you read Lua 5.1 reference manual carefully?
GopherLua is a Lua5.1 implementation. In Lua, to keep it simple, it is more important to remove functionalities rather than to add functionalities unlike other languages . If you are going to introduce some new cool functionalities into the GopherLua code base and the functionalities can be implemented by existing APIs, It should be implemented as a library.
Please answer the following before submitting your issue:
What version of GopherLua are you using? : 2b3f02d
What version of Go are you using? : go version go1.20.4 linux/amd64
What operating system and processor architecture are you using? : -
$ glua sha2_test.lua
./sha2.lua:87: at least 53-bit floating point numbers are required
stack traceback:
[G]: infunction'assert'
./sha2.lua:87: infunction<./sha2.lua:0>
[G]: infunction'require'
sha2_test.lua:5: in main chunk
[G]: ?
A bog-standard non-recursive fib function that uses multi-assignment can be easily used to reproduce this bug:
functionfib(n)
ifn<=1thenreturnnendlocala, b=0, 1fori=2, ndoprint("calc: [i: " ..i..", b: " ..b.."]")
a, b=b, a+bendreturnbendfib(35) -- produces 17179869184 instead of 9227465, a symptom of doubling the value every cycle
You must post issues only here. Questions, ideas must be posted in discussions.
Please answer the following before submitting your issue:
go version go1.20.4 linux/amd64
This looks related to #355 and #315.
Discovered while debugging test suite for https://github.com/Egor-Skriptunoff/pure_lua_SHA
which fails due to incorrect multi-assignment calculation here https://github.com/Egor-Skriptunoff/pure_lua_SHA/blob/6adac177c16c3496899f69d220dfb20bc31c03df/sha2.lua#L75
The text was updated successfully, but these errors were encountered: