diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-05-31 15:27:56 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-05-31 15:27:56 -0300 |
commit | 821bd7025ea7ecf399e0b50f920a460b11c649c7 (patch) | |
tree | 98cd8aa59a2cc80b6d52b164cebcb2a46b457f4a /lcode.c | |
parent | 9b7dddad7d3f4546f838834d9674eaf0f2fca3dd (diff) | |
download | lua-821bd7025ea7ecf399e0b50f920a460b11c649c7.tar.gz lua-821bd7025ea7ecf399e0b50f920a460b11c649c7.tar.bz2 lua-821bd7025ea7ecf399e0b50f920a460b11c649c7.zip |
more uniform names for 'equalobj'-related functions
Diffstat (limited to '')
-rw-r--r-- | lcode.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lcode.c,v 2.54 2011/04/28 14:00:11 roberto Exp roberto $ | 2 | ** $Id: lcode.c,v 2.55 2011/05/31 18:24:36 roberto Exp roberto $ |
3 | ** Code generator for Lua | 3 | ** Code generator for Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -296,7 +296,7 @@ static int addk (FuncState *fs, TValue *key, TValue *v) { | |||
296 | if (ttisnumber(idx)) { | 296 | if (ttisnumber(idx)) { |
297 | lua_Number n = nvalue(idx); | 297 | lua_Number n = nvalue(idx); |
298 | lua_number2int(k, n); | 298 | lua_number2int(k, n); |
299 | if (luaV_rawequalObj(&f->k[k], v)) | 299 | if (luaV_rawequalobj(&f->k[k], v)) |
300 | return k; | 300 | return k; |
301 | /* else may be a collision (e.g., between 0.0 and "\0\0\0\0\0\0\0\0"); | 301 | /* else may be a collision (e.g., between 0.0 and "\0\0\0\0\0\0\0\0"); |
302 | go through and create a new entry for this value */ | 302 | go through and create a new entry for this value */ |