This restricts the data type of the enum to uint16_t, so if anyone ever adds enough values to it to overflow the 16 bits that are available in the Key structure, even if they do it without an assignment (e.g. `TOO_BIG_ENUM = 0x10000`), it will result in a compilation error instead of runtime errors.pull/389/head
parent
04d32479e1
commit
6055c39511
Loading…
Reference in new issue