The SubOpcode31Grabber[1024] = { ppc_illegalop } initializer only populates the first entry with ppc_illegalop (at least on some compilers), switch to explicitly initializing the entire array with std::fill_n.
Also fix a couple of sign and overflow issues flagged by the Xcode undefined behavior sanitizer.
The
SubOpcode31Grabber[1024] = { ppc_illegalop }
initializer only populates the first entry with ppc_illegalop (at least on some compilers), switch to explicitly initializing the entire array withstd::fill_n
.Also fix a couple of sign and overflow issues flagged by the Xcode undefined behavior sanitizer.