mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-31 17:56:48 +02: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.