aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2021-09-14 13:56:34 +1000
committeronefang2021-09-14 13:56:34 +1000
commitd68f3f42821ffaa7d68ffa48b0e5ceee0aa0ab9a (patch)
tree47749c06ee814f5b711cc7e5918c785477c57346
parentMore logging tweakage. (diff)
downloadopensim-SC-d68f3f42821ffaa7d68ffa48b0e5ceee0aa0ab9a.zip
opensim-SC-d68f3f42821ffaa7d68ffa48b0e5ceee0aa0ab9a.tar.gz
opensim-SC-d68f3f42821ffaa7d68ffa48b0e5ceee0aa0ab9a.tar.bz2
opensim-SC-d68f3f42821ffaa7d68ffa48b0e5ceee0aa0ab9a.tar.xz
Comment out the lua_isnumber() check.
-rw-r--r--src/sledjchisl/sledjchisl.c6
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 {