lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Am 27.02.2015 um 14:45 schröbte vadim yegor0v:
On 27.02.2015 15:28, Roberto Ierusalimschy wrote:
Does it "crash" or throw an error? -- Roberto
0.047 0.046 0.047 C:\!\lua-5.3.0\src\lua.exe: attempt to call a nil value
stack traceback:
         [C]: in function 'lpeg.match'
         lpeg_test4.lua:13: in upvalue 'parse'
         lpeg_test4.lua:17: in upvalue 'test_lpeg'
         lpeg_test4.lua:22: in local 'test'
         lpeg_test4.lua:25: in main chunk
         [C]: in ?


That error happens on the 32767th call to `test_lpeg` here, so it's probably some overflow of a `short` variable ...

Philipp