aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-11-29 13:39:48 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-11-29 13:39:48 -0200
commit51650eac786e642a324877af20c9df698ab0c8bd (patch)
tree8464b6a2e1603c91171f5fefbd35cc3ea20ae836
parentaea68e5c54effa19a3849e31c96c5e563e69557b (diff)
downloadlua-51650eac786e642a324877af20c9df698ab0c8bd.tar.gz
lua-51650eac786e642a324877af20c9df698ab0c8bd.tar.bz2
lua-51650eac786e642a324877af20c9df698ab0c8bd.zip
small change to avoid warnings of non-specified order of access
to volatile fields
-rw-r--r--llimits.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llimits.h b/llimits.h
index d0be3ab5..b704f527 100644
--- a/llimits.h
+++ b/llimits.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llimits.h,v 1.92 2011/09/30 12:46:06 roberto Exp roberto $ 2** $Id: llimits.h,v 1.93 2011/10/07 20:45:19 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*/
@@ -228,7 +228,7 @@ union luai_Cast { double l_d; LUA_INT32 l_p[2]; };
228 228
229#define luai_hashnum(i,n) \ 229#define luai_hashnum(i,n) \
230 { volatile union luai_Cast u; u.l_d = (n) + 1.0; /* avoid -0 */ \ 230 { volatile union luai_Cast u; u.l_d = (n) + 1.0; /* avoid -0 */ \
231 (i) = u.l_p[0] + u.l_p[1]; } /* add double bits for his hash */ 231 (i) = u.l_p[0]; (i) += u.l_p[1]; } /* add double bits for his hash */
232 232
233#define lua_number2int(i,n) lua_number2int32(i, n, int) 233#define lua_number2int(i,n) lua_number2int32(i, n, int)
234#define lua_number2integer(i,n) lua_number2int32(i, n, lua_Integer) 234#define lua_number2integer(i,n) lua_number2int32(i, n, lua_Integer)