@@ -1082,7 +1082,7 @@ namespace luautils
10821082
10831083 if (lua_isnumber (L, 1 ))
10841084 {
1085- int32 trial = (lua_tointeger (L, 1 ));
1085+ int32 trial = static_cast <int32> (lua_tointeger (L, 1 ));
10861086 int32 field {0 };
10871087 lua_newtable (L);
10881088 if (Sql_Query (SqlHandle, Query, trial) != SQL_ERROR && Sql_NumRows (SqlHandle) != 0 && Sql_NextRow (SqlHandle) == SQL_SUCCESS)
@@ -1099,7 +1099,7 @@ namespace luautils
10991099 {
11001100 // parse provided trial's from table
11011101 std::vector<int32> trials;
1102- for (int i = 1 , j = lua_objlen (L,1 ); i <= j; i++)
1102+ for (size_t i = 1 , j = lua_objlen (L, 1 ); i <= j; i++)
11031103 {
11041104 lua_pushinteger (L, i);
11051105 lua_gettable (L, 1 );
@@ -1108,7 +1108,7 @@ namespace luautils
11081108 lua_pop (L, 1 );
11091109 continue ;
11101110 }
1111- trials.push_back (lua_tointeger (L, -1 ));
1111+ trials.push_back (static_cast <int32>( lua_tointeger (L, -1 ) ));
11121112 lua_pop (L, 1 );
11131113 }
11141114
@@ -1154,7 +1154,7 @@ namespace luautils
11541154
11551155 if (lua_isnumber (L, 1 ))
11561156 {
1157- int32 parentTrial = lua_tointeger (L, 1 );
1157+ int32 parentTrial = static_cast <int32>( lua_tointeger (L, 1 ) );
11581158 const char * Query = " SELECT `trialId` from `magian` WHERE `previousTrial` = %u;" ;
11591159
11601160 int32 ret = Sql_Query (SqlHandle, Query, parentTrial);
@@ -4455,7 +4455,7 @@ namespace luautils
44554455 {
44564456 TPZ_DEBUG_BREAK_IF (lua_isnil (L, -1 ) || !lua_isnumber (L, -1 ));
44574457
4458- uint32 id = lua_tointeger (L, 1 );
4458+ uint32 id = static_cast <uint32>( lua_tointeger (L, 1 ) );
44594459 CItem* PItem = itemutils::GetItemPointer (id);
44604460 if (PItem)
44614461 {
0 commit comments