summaryrefslogtreecommitdiff
path: root/llimits.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-02-28 14:32:10 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-02-28 14:32:10 -0300
commit98816d0ce58db9e817129b076723187d690501df (patch)
treeb8cab039ba8aecb51453206447890c05cb618b34 /llimits.h
parent7482e8f914fbf198af02c2970cf0aadd80740f92 (diff)
downloadlua-98816d0ce58db9e817129b076723187d690501df.tar.gz
lua-98816d0ce58db9e817129b076723187d690501df.tar.bz2
lua-98816d0ce58db9e817129b076723187d690501df.zip
small problems with 'luaone.c'
Diffstat (limited to 'llimits.h')
-rw-r--r--llimits.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/llimits.h b/llimits.h
index 02b10fe4..72f32a8d 100644
--- a/llimits.h
+++ b/llimits.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llimits.h,v 1.86 2010/12/23 15:38:28 roberto Exp roberto $ 2** $Id: llimits.h,v 1.87 2011/02/01 16:52:38 roberto Exp roberto $
3** Limits, basic types, and some other `installation-dependent' definitions 3** Limits, basic types, and some other `installation-dependent' definitions
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -250,7 +250,7 @@ union luai_Cast { double l_d; LUA_INT32 l_p[2]; };
250 250
251 251
252 252
253#if defined(ltable_c) && !defined(luai_hashnum) /* { */ 253#if (defined(ltable_c) || defined(luaall_c)) && !defined(luai_hashnum)
254 254
255#include <float.h> 255#include <float.h>
256#include <math.h> 256#include <math.h>
@@ -259,7 +259,7 @@ union luai_Cast { double l_d; LUA_INT32 l_p[2]; };
259 n = frexp(n, &e) * (lua_Number)(INT_MAX - DBL_MAX_EXP); \ 259 n = frexp(n, &e) * (lua_Number)(INT_MAX - DBL_MAX_EXP); \
260 lua_number2int(i, n); i += e; } 260 lua_number2int(i, n); i += e; }
261 261
262#endif /* } */ 262#endif
263 263
264 264
265 265