mirror of
https://github.com/lua/lua.git
synced 2026-08-30 15:08:19 +00:00
Details
typo in comment + formatting + logical 'and' was written as a bitwise operation (makes code more fragile)
This commit is contained in:
2
lapi.c
2
lapi.c
@@ -366,7 +366,7 @@ LUA_API int lua_compare (lua_State *L, int index1, int index2, int op) {
|
||||
}
|
||||
|
||||
|
||||
LUA_API unsigned (lua_numbertocstring) (lua_State *L, int idx, char *buff) {
|
||||
LUA_API unsigned lua_numbertocstring (lua_State *L, int idx, char *buff) {
|
||||
const TValue *o = index2value(L, idx);
|
||||
if (ttisnumber(o)) {
|
||||
unsigned len = luaO_tostringbuff(o, buff);
|
||||
|
||||
Reference in New Issue
Block a user