diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-05-06 14:17:09 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-05-06 14:17:09 -0300 |
commit | fa6ea831b36cbef0acf1595c9b9eec6171792715 (patch) | |
tree | 1abb4f47bcab149181d29c0b84cbf3784cef69b7 | |
parent | b22a4280c68517988650c31f93d37d7c45b08703 (diff) | |
download | lua-fa6ea831b36cbef0acf1595c9b9eec6171792715.tar.gz lua-fa6ea831b36cbef0acf1595c9b9eec6171792715.tar.bz2 lua-fa6ea831b36cbef0acf1595c9b9eec6171792715.zip |
macro 'nvalue' removed (direct conversion from integer to double,
without an intermediate variable, can cause "excessive precision"
-rw-r--r-- | lobject.h | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lobject.h,v 2.75 2013/04/29 16:57:28 roberto Exp roberto $ | 2 | ** $Id: lobject.h,v 2.76 2013/05/02 12:37:24 roberto Exp roberto $ |
3 | ** Type definitions for Lua objects | 3 | ** Type definitions for Lua objects |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -153,9 +153,6 @@ typedef struct lua_TValue TValue; | |||
153 | 153 | ||
154 | 154 | ||
155 | /* Macros to access values */ | 155 | /* Macros to access values */ |
156 | #define nvalue(o) \ | ||
157 | check_exp(ttisnumber(o), (ttisfloat(o) ? val_(o).n : cast_num(val_(o).i))) | ||
158 | |||
159 | #define ivalue(o) check_exp(ttisinteger(o), val_(o).i) | 156 | #define ivalue(o) check_exp(ttisinteger(o), val_(o).i) |
160 | #define fltvalue(o) check_exp(ttisfloat(o), val_(o).n) | 157 | #define fltvalue(o) check_exp(ttisfloat(o), val_(o).n) |
161 | #define gcvalue(o) check_exp(iscollectable(o), val_(o).gc) | 158 | #define gcvalue(o) check_exp(iscollectable(o), val_(o).gc) |