[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: LuaJIT 2 bug?
- From: Chris <coderight@...>
- Date: Wed, 28 Apr 2010 14:48:41 -0400
I'm using the latest LuaJIT from the git repository. Compiled in
64-bit I presume since I'm running 64-bit Ubuntu. Here is the
program:
-----
local foo = {
value = 0
}
function foo:bar(value1, value2)
local oldvalue = self.value
self.value = value1 + value2
return oldvalue
end
local a = 0
for i=1, 1000, 1 do
a = foo:bar(i, i + a)
end
print(a)
-----
The results of that do not match normal lua. It seems that the
for-loop only does a maximum of 59 iterations on my machine. Sorry I
haven't had time to narrow it down to anything more specific.
CR