Re: Lua BitOp test file causes exception?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Lua BitOp test file causes exception?
- From: Shmuel Zeigerman <shmuz@...>
- Date: 2010年10月05日 08:56:43 +0200
Joe Andresen wrote:
anyone else get this using the source?
bad argument #1 to '?' (number expected, got no value)
line 22 of the test file:
if pcall(f) or pcall(f, "z") or pcall(f, true) then
where f is the function "tobit"
Everything's OK on my machine.
However this error can be reproduced if pcall is redefined, e.g.:
pcall = function(f, ...) return true, f(...) end
--
Shmuel