• 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!

Solved [TFS 1.2] Shift count negative or too big

Printer

if Printer then print("LUA") end
Senator
Premium User
Joined
Dec 27, 2009
Messages
5,782
Solutions
31
Reaction score
2,286
Location
Sweden?
Hello, i was adding custom conditions and then i got this warning:
src\enums.h(300): warning C4293: '<<' : shift count negative or too big, undefined behavior
 
Ok found the solution, it seems playerflags had similar structure:
Code:
static_cast<uint64_t>(1) << 31
 
Back
Top