From 7ac86950d3a89a996974e8406ee88e8f5f44187d Mon Sep 17 00:00:00 2001 From: chai Date: Sun, 29 Jul 2018 21:30:03 +0800 Subject: *update --- src/lua/graphics/luaopen_JSL.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lua/graphics') diff --git a/src/lua/graphics/luaopen_JSL.cpp b/src/lua/graphics/luaopen_JSL.cpp index 9b9071c..7c59937 100644 --- a/src/lua/graphics/luaopen_JSL.cpp +++ b/src/lua/graphics/luaopen_JSL.cpp @@ -30,7 +30,7 @@ namespace lua COLOR, }; - static VARIABLE_TYPE strtotype(const char* str) + static VARIABLE_TYPE strToType(const char* str) { std::string s = std::string(str); if (s == "number") return NUMBER; @@ -55,7 +55,7 @@ namespace lua const char* variable = luax_checkstring(L, 3); if (typestr != nullptr) { - int type = strtotype(typestr); + int type = strToType(typestr); switch (type) { case NUMBER: -- cgit v1.1-26-g67d0