diff options
Diffstat (limited to '')
-rw-r--r-- | src/sledjchisl/sledjchisl.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index f0a9f3f..476c728 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c | |||
@@ -1009,12 +1009,14 @@ int Lua2hashtbl(char *file, qhashtbl_t *hash, char *var) | |||
1009 | 1009 | ||
1010 | // Numbers can convert to strings, so check for numbers before checking for strings. | 1010 | // Numbers can convert to strings, so check for numbers before checking for strings. |
1011 | // On the other hand, strings that can be converted to numbers also pass lua_isnumber(). sigh | 1011 | // On the other hand, strings that can be converted to numbers also pass lua_isnumber(). sigh |
1012 | if (lua_isnumber(L, -1)) // 0 | 1012 | /* if (lua_isnumber(L, -1)) // 0 |
1013 | { | 1013 | { |
1014 | float v = lua_tonumber(L, -1); // 0 | 1014 | float v = lua_tonumber(L, -1); // 0 |
1015 | hash->put(hash, n, &v, sizeof(float)); | 1015 | hash->put(hash, n, &v, sizeof(float)); |
1016 | } | 1016 | } |
1017 | else if (lua_isstring(L, -1)) // 0 | 1017 | else |
1018 | */ | ||
1019 | if (lua_isstring(L, -1)) // 0 | ||
1018 | hash->putstr(hash, n, (char *) lua_tostring(L, -1)); // 0 | 1020 | hash->putstr(hash, n, (char *) lua_tostring(L, -1)); // 0 |
1019 | else if (lua_isboolean(L, -1)) // 0 | 1021 | else if (lua_isboolean(L, -1)) // 0 |
1020 | { | 1022 | { |