diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tests/hs_parse_args_tests.c | 4 | ||||
-rw-r--r-- | src/tests/hs_parse_overloaded_tests.c | 6 |
2 files changed, 5 insertions, 5 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)); diff --git a/src/tests/hs_parse_overloaded_tests.c b/src/tests/hs_parse_overloaded_tests.c index 784807a..3c327cb 100644 --- a/src/tests/hs_parse_overloaded_tests.c +++ b/src/tests/hs_parse_overloaded_tests.c @@ -10,7 +10,7 @@ static int testfunc(lua_State *L) { return 0; } */ #define PARSE_OVERLOADED \ - bool b; long int i; int ti, fi, ni; double f; \ + bool b; lua_Integer i; int ti, fi, ni; lua_Number f; \ char *str; lua_CFunction fn; void *user, *light; \ int choice = hs_parse_overloaded \ (L, \ @@ -124,7 +124,7 @@ TEST(parse_2_3_overload_0) { lua_pushinteger(L, 69); lua_pushstring(L, "foo"); - long int i; char *str; void *data; + lua_Integer i; char *str; void *data; int choice = hs_parse_overloaded (L, hs_overload(hs_int(i), hs_str(str)), @@ -141,7 +141,7 @@ TEST(parse_2_3_overload_1) lua_pushinteger(L, 69); lua_pushstring(L, "foo"); void *userdata = lua_newuserdata(L, sizeof(char)); - long int i; char *str; void *data; + lua_Integer i; char *str; void *data; int choice = hs_parse_overloaded (L, hs_overload(hs_int(i), hs_str(str)), |