summaryrefslogtreecommitdiff
path: root/src/hs_parse_args.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hs_parse_args.c')
-rw-r--r--src/hs_parse_args.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hs_parse_args.c b/src/hs_parse_args.c
index eee34e9..5a14bd0 100644
--- a/src/hs_parse_args.c
+++ b/src/hs_parse_args.c
@@ -24,7 +24,7 @@ static bool check_parse(lua_State *L, int index, struct hs_arg *expected)
return true;
case HS_STR:
- if (!lua_isstring(L, index))
+ if (!lua_isstring(L, index) || lua_isnumber(L, index))
return false;
*(expected->ptr.string) = (char *) lua_tostring(L, index);
return true;