Tak jak w temacie niestety nie mam pojęcia jak poradzić sobie z tymi warningami używam MV C++ 2010
Czy mógł by ktoś dać przykład jak to miało by wyglądać poprawnie ?
Pozdrawiam
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