diff options
author | Philipp Janda <siffiejoe@gmx.net> | 2017-08-27 10:45:09 +0200 |
---|---|---|
committer | Philipp Janda <siffiejoe@gmx.net> | 2017-08-27 10:45:09 +0200 |
commit | 8ecb0d1d62794dac65d4855cc150d45cd9cd255b (patch) | |
tree | b52d5b1e47ebb15126b6c6dedb3d1c5c5bca4985 /c-api/compat-5.3.c | |
parent | 4e54e82dd903b4f7b17bb242e2b9a190b2de3598 (diff) | |
download | lua-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.c | 2 |
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 | ||
552 | COMPAT53_API size_t lua_stringtonumber (lua_State *L, const char *s) { | 552 | COMPAT53_API size_t lua_stringtonumber (lua_State *L, const char *s) { |