Re: lua_pushfstring: '%L' inserts a lua_Integer?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: lua_pushfstring: '%L' inserts a lua_Integer?
- From: Roberto Ierusalimschy <roberto@...>
- Date: 2015年2月10日 16:08:12 -0200
> The document of lua_pushfstring says '%L' inserts a lua_Integer. I tried:
>
>
>
> lua_pushfstring(L, "%L", (lua_Integer) 0);
>
>
>
> … and got:
>
>
>
> PANIC: unprotected error in call to Lua API (invalid option '%L' to 'lua_pushfstring')
The manual is wrong. It should read '%I'.
-- Roberto