summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2010-07-02 11:18:57 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2010-07-02 11:18:57 -0700
commitd1e65715467febf68f72b908cf8d43b45548549d (patch)
treec4bae46b2089a9fc377244855ec0f0a077437685
parent0e07090a733fda73ae8bb90088b6375f9d51c2f1 (diff)
downloadsyslinux-d1e65715467febf68f72b908cf8d43b45548549d.tar.gz
syslinux-d1e65715467febf68f72b908cf8d43b45548549d.tar.xz
syslinux-d1e65715467febf68f72b908cf8d43b45548549d.zip
lua: add parents to luaconf.h to quiet a gcc warning
gcc warns about suspicious-looking code with a comparison inside ==. The code is correct, but add parens so that gcc know we know it is correct. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
-rw-r--r--com32/lua/src/luaconf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/com32/lua/src/luaconf.h b/com32/lua/src/luaconf.h
index f39f50e2..d2852513 100644
--- a/com32/lua/src/luaconf.h
+++ b/com32/lua/src/luaconf.h
@@ -564,13 +564,13 @@
#define luai_numdiv(a,b) \
(-1/2? \
(a)/(b): \
- ((a)<0==(b)<0||(a)%(b)==0? \
+ (((a)<0)==((b)<0)||(a)%(b)==0? \
(a)/(b): \
(a)/(b)-1))
#define luai_nummod(a,b) \
(-1/2? \
(a)%(b): \
- ((a)<0==(b)<0||(a)%(b)==0? \
+ (((a)<0)==((b)<0)||(a)%(b)==0? \
(a)%(b): \
(a)%(b)+(b)))
#define luai_lnumdiv(a,b) \