[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: Tue, 10 Feb 2015 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