commit 04c41444e22740119d3c017830276d6590b09747
parent 03fb3c39d4f3a60367558ee357cbb9a26f01bc2b
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date: Mon, 28 Mar 2005 09:53:18 -0300
wrong comment corrected
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lobject.c b/lobject.c
@@ -1,5 +1,5 @@
/*
-** $Id: lobject.c,v 2.10 2005/03/08 20:10:05 roberto Exp roberto $
+** $Id: lobject.c,v 2.11 2005/03/09 16:28:07 roberto Exp roberto $
** Some generic functions over Lua objects
** See Copyright Notice in lua.h
*/
@@ -29,7 +29,8 @@ const TValue luaO_nilobject = {{NULL}, LUA_TNIL};
/*
** converts an integer to a "floating point byte", represented as
-** (mmmmmxxx), where the real value is (xxx) * 2^(mmmmm)
+** (eeeeexxx), where the real value is (1xxx) * 2^(eeeee - 1) if
+** eeeee != 0 and (xxx) otherwise.
*/
int luaO_int2fb (unsigned int x) {
int e = 0; /* expoent */