Files
Adafruit_nRF52_Arduino/cores/nRF5/utility
Henry Gabryjelski e96b3ed14f Fix multiple warnings when building.
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.
2019-08-14 13:56:12 -07:00
..
2018-07-27 16:20:36 +07:00
2019-08-14 13:56:12 -07:00
2019-05-14 22:25:31 +02:00
2018-07-27 16:20:36 +07:00
2019-06-07 15:27:57 +07:00