mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-26 14:03:41 +01:00

Otherwise we might get UB if the value we cast is larger than the max value of the underlying type that the compiled picked for the enum. I haven't done any extensive check through Dolphin to find cases of this, I'm just fixing the cases I already know of.