You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix#1:
warning: format '%X' expects argument of type 'unsigned int', but argument 3 has type 'int32_t {aka long int}' [-Wformat=]
The C++ specification requires "%X" to receive an unsigned value. Any other type (including signed values) is "undefined behavior".
Fix#2:
warning: narrowing conversion of '(((int)itfnum) + 1)' from 'int' to 'uint8_t {aka unsigned char}' inside { } [-Wnarrowing]
The affected macros are returning a list of uint8_t values, typically to define statically-allocated byte arrays.
The fix is to explicitly cast to `uint8_t` when doing arithmetic on any parameter. Also added explicit comment
on the implied constraint.
0 commit comments