devkitPro / wut

Let's try to make a Wii U Toolchain / SDK for creating rpx/rpl.
zlib License
244 stars 52 forks source link

Small fixup on nn::Result #157

Closed luigoalma closed 4 years ago

luigoalma commented 4 years ago

Although bit fields often work nicely, the bit fields in nn::Result had the order of accessed bits swapped, compiler's target endianness affects the order of what bits are accessed in struct bitfields. It was proper for little endian targets, but not big endian. Using bit shifts instead, to also allow general portability.

exjam commented 4 years ago

Nice catch!