diff options
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llinventorylistener.cpp | 2 | ||||
-rw-r--r-- | indra/newview/llluamanager.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/indra/newview/llinventorylistener.cpp b/indra/newview/llinventorylistener.cpp index 9263663997..753ad3ddeb 100644 --- a/indra/newview/llinventorylistener.cpp +++ b/indra/newview/llinventorylistener.cpp @@ -33,7 +33,7 @@ #include "llwearableitemslist.h" #include "stringize.h" -static const F32 MAX_ITEM_LIMIT = 100; +constexpr S32 MAX_ITEM_LIMIT = 100; LLInventoryListener::LLInventoryListener() : LLEventAPI("LLInventory", diff --git a/indra/newview/llluamanager.cpp b/indra/newview/llluamanager.cpp index 91a34345be..6a725e785f 100644 --- a/indra/newview/llluamanager.cpp +++ b/indra/newview/llluamanager.cpp @@ -56,9 +56,9 @@ std::map<std::string, std::string> LLLUAmanager::sScriptNames; lua_function(sleep, "sleep(seconds): pause the running coroutine") { lua_checkdelta(L, -1); - F32 seconds = lua_tonumber(L, -1); + lua_Number seconds = lua_tonumber(L, -1); lua_pop(L, 1); - llcoro::suspendUntilTimeout(seconds); + llcoro::suspendUntilTimeout(narrow(seconds)); LuaState::getParent(L).set_interrupts_counter(0); return 0; }; |