• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Warningi

adif1

New Member
Joined
Mar 20, 2010
Messages
47
Reaction score
0
Tak jak w temacie niestety nie mam pojęcia jak poradzić sobie z tymi warningami używam MV C++ 2010

Code:
1>..\..\src\luascript.cpp(1032): warning C4800: 'int32_t' : forcing value to bool 'true' or 'false' (performance warning)
1>..\..\src\luascript.cpp(1033): warning C4800: 'int32_t' : forcing value to bool 'true' or 'false' (performance warning)
1>..\..\src\luascript.cpp(1034): warning C4800: 'int32_t' : forcing value to bool 'true' or 'false' (performance warning)
1>..\..\src\luascript.cpp(1035): warning C4800: 'int32_t' : forcing value to bool 'true' or 'false' (performance warning)
1>..\..\src\luascript.cpp(1036): warning C4800: 'int32_t' : forcing value to bool 'true' or 'false' (performance warning)
1>..\..\src\luascript.cpp(1044): warning C4800: 'int32_t' : forcing value to bool 'true' or 'false' (performance warning)
1>..\..\src\luascript.cpp(1161): warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
1>..\..\src\luascript.cpp(1184): warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
1>..\..\src\luascript.cpp(1229): warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
1>..\..\src\luascript.cpp(4753): warning C4800: 'const uint32_t' : forcing value to bool 'true' or 'false' (performance warning)

Czy mógł by ktoś dać przykład jak to miało by wyglądać poprawnie ?

Code:
params.blockedByArmor = (bool) getField(L, "blockedByArmor", params.blockedByArmor);

Pozdrawiam
 
Back
Top