aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
authorRoberto I <roberto@inf.puc-rio.br>2025-12-23 14:44:06 -0300
committerRoberto I <roberto@inf.puc-rio.br>2025-12-23 14:44:06 -0300
commit578ae5745cecee56d48795cd4ae1eaf13618715c (patch)
tree3c140dfd5e215fa162d440da480e0aa66cbb05c3 /lapi.c
parenta5522f06d2679b8f18534fd6a9968f7eb539dc31 (diff)
downloadlua-578ae5745cecee56d48795cd4ae1eaf13618715c.tar.gz
lua-578ae5745cecee56d48795cd4ae1eaf13618715c.tar.bz2
lua-578ae5745cecee56d48795cd4ae1eaf13618715c.zip
Details
typo in comment + formatting + logical 'and' was written as a bitwise operation (makes code more fragile)
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lapi.c b/lapi.c
index 27fa5247..42c8fcdd 100644
--- a/lapi.c
+++ b/lapi.c
@@ -366,7 +366,7 @@ LUA_API int lua_compare (lua_State *L, int index1, int index2, int op) {
366} 366}
367 367
368 368
369LUA_API unsigned (lua_numbertocstring) (lua_State *L, int idx, char *buff) { 369LUA_API unsigned lua_numbertocstring (lua_State *L, int idx, char *buff) {
370 const TValue *o = index2value(L, idx); 370 const TValue *o = index2value(L, idx);
371 if (ttisnumber(o)) { 371 if (ttisnumber(o)) {
372 unsigned len = luaO_tostringbuff(o, buff); 372 unsigned len = luaO_tostringbuff(o, buff);