basic icon indicating copy to clipboard operation
basic copied to clipboard

Fixed enum bitpacking in basic_function.

Open yuppox opened this issue 4 years ago • 0 comments

GCC uses unsigned for enum, unless the enum includes explicit negative assignments. MSVC appears to default to signed. Bitpacking here creates errors if the enum is signed because the maximum value for 3 bits is 3, not 7.

The easy solution is to add an extra bit for signed/unsigned.

I wonder also if bitpacking is necessary?

yuppox avatar Nov 10 '20 06:11 yuppox