Opened 7 years ago
Closed 5 years ago
#7139 closed defect (fixed)
BBVS: Undefined behavior - shift of a negative value
|Reported by:||salty-horse||Owned by:||csnover|
|Cc:||Game:||Beavis & Butthead Virtual Stupidity|
In the Bug Justice minigame code, clang warns of bitwise shifts of a negative value, which are undefined behavior in C++:
~~~text engines/bbvs/minigames/bbant.cpp 591: obj->yIncr = (-1 x x > (330 y y > (250 yIncr = (-4 << 16); ~~~
Ticket imported from: bugs/7139.
Change History (1)
comment:1 by , 5 years ago
|Status:||new → closed|
Note: See TracTickets for help on using tickets.
Oops, I fixed these in cc12c878b7faba373ac23aecf798f979122e5bd8 and didn’t even realise there was a ticket open for it.