Browse Source

Merge pull request #844 from gesior/iptostring_fix

Fix iptostring in LUA
Konrad Kuśnierz 3 years ago
parent
commit
8c731ac016
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/framework/luafunctions.cpp

+ 1
- 1
src/framework/luafunctions.cpp View File

@@ -72,7 +72,7 @@ void Application::registerLuaFunctions()
72 72
     g_lua.bindGlobalFunction("pointtostring", [](const Point& v) { return stdext::to_string(v); });
73 73
     g_lua.bindGlobalFunction("colortostring", [](const Color& v) { return stdext::to_string(v); });
74 74
     g_lua.bindGlobalFunction("sizetostring", [](const Size& v) { return stdext::to_string(v); });
75
-    g_lua.bindGlobalFunction("iptostring", [](int v) { return stdext::ip_to_string(v); });
75
+    g_lua.bindGlobalFunction("iptostring", [](uint32 v) { return stdext::ip_to_string(v); });
76 76
     g_lua.bindGlobalFunction("stringtoip", [](const std::string& v) { return stdext::string_to_ip(v); });
77 77
     g_lua.bindGlobalFunction("listSubnetAddresses", [](uint32 a, uint8 b) { return stdext::listSubnetAddresses(a, b); });
78 78
     g_lua.bindGlobalFunction("ucwords", [](std::string s) { return stdext::ucwords(s); });

Loading…
Cancel
Save