From 42ff788e53ecffdd6741ca4da63fdedb220178d7 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 8 May 2014 15:58:46 -0300 Subject: comments --- lcode.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lcode.c b/lcode.c index 103bed14..40bfd1c3 100644 --- a/lcode.c +++ b/lcode.c @@ -1,5 +1,5 @@ /* -** $Id: lcode.c,v 2.88 2014/04/27 14:41:11 roberto Exp roberto $ +** $Id: lcode.c,v 2.89 2014/04/29 18:14:16 roberto Exp roberto $ ** Code generator for Lua ** See Copyright Notice in lua.h */ @@ -346,8 +346,9 @@ int luaK_stringK (FuncState *fs, TString *s) { /* -** use userdata as key to avoid collision with float with same value; -** conversion to 'void*' used only for hash, no "precision" problems +** Integers use userdata as keys to avoid collision with floats with same +** value; conversion to 'void*' used only for hashing, no "precision" +** problems */ int luaK_intK (FuncState *fs, lua_Integer n) { TValue k, o; @@ -359,8 +360,8 @@ int luaK_intK (FuncState *fs, lua_Integer n) { /* ** Both NaN and -0.0 should not go to the constant table, as they have -** problems with the hashing. (NaN is not ** a valid key, -** -0.0 collides with +0.0.) +** problems with the hashing. (NaN is not a valid key, -0.0 collides +** with +0.0.) */ static int luaK_numberK (FuncState *fs, lua_Number r) { TValue o; -- cgit v1.2.3-55-g6feb