diff options
author | sanine <sanine.not@pm.me> | 2021-08-28 11:58:36 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2021-08-28 11:58:36 -0500 |
commit | 43a85192bbb76c6ed055d0328da9ce360a8d6dea (patch) | |
tree | 2aa9d613076244864521ad01bf8c33d427a9fe81 /src/tests/hs_parse_args_tests.c | |
parent | 80b31efd46f6e9fc1abd57494a5b43530c7fa180 (diff) |
fix some README example code and correct numerical types in tests
Diffstat (limited to 'src/tests/hs_parse_args_tests.c')
-rw-r--r-- | src/tests/hs_parse_args_tests.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/hs_parse_args_tests.c b/src/tests/hs_parse_args_tests.c index 300a519..83178f3 100644 --- a/src/tests/hs_parse_args_tests.c +++ b/src/tests/hs_parse_args_tests.c @@ -549,8 +549,8 @@ TEST(parse_readme_example) lua_pushstring(L, "c: c: c:"); void *userdata = lua_newuserdata(L, sizeof(char)); - bool b; long int i; int table_index; - double f; char *str; void *user; + bool b; lua_Integer i; int table_index; + lua_Number f; char *str; void *user; hs_parse_args (L, hs_bool(b), hs_int(i), hs_tbl(table_index), hs_num(f), hs_str(str), hs_user(user)); |