aboutsummaryrefslogtreecommitdiff
path: root/c-api/compat-5.3.c
diff options
context:
space:
mode:
authorPhilipp Janda <siffiejoe@gmx.net>2017-08-27 10:45:09 +0200
committerPhilipp Janda <siffiejoe@gmx.net>2017-08-27 10:45:09 +0200
commit8ecb0d1d62794dac65d4855cc150d45cd9cd255b (patch)
treeb52d5b1e47ebb15126b6c6dedb3d1c5c5bca4985 /c-api/compat-5.3.c
parent4e54e82dd903b4f7b17bb242e2b9a190b2de3598 (diff)
downloadlua-compat-5.3-8ecb0d1d62794dac65d4855cc150d45cd9cd255b.tar.gz
lua-compat-5.3-8ecb0d1d62794dac65d4855cc150d45cd9cd255b.tar.bz2
lua-compat-5.3-8ecb0d1d62794dac65d4855cc150d45cd9cd255b.zip
Add parens around macro arguments.
Fixes #22.
Diffstat (limited to 'c-api/compat-5.3.c')
-rw-r--r--c-api/compat-5.3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c-api/compat-5.3.c b/c-api/compat-5.3.c
index 1e985f9..96b38cc 100644
--- a/c-api/compat-5.3.c
+++ b/c-api/compat-5.3.c
@@ -546,7 +546,7 @@ COMPAT53_API void lua_seti (lua_State *L, int index, lua_Integer i) {
546 546
547 547
548#if !defined(lua_str2number) 548#if !defined(lua_str2number)
549# define lua_str2number(s, p) strtod(s, p) 549# define lua_str2number(s, p) strtod((s), (p))
550#endif 550#endif
551 551
552COMPAT53_API size_t lua_stringtonumber (lua_State *L, const char *s) { 552COMPAT53_API size_t lua_stringtonumber (lua_State *L, const char *s) {