diff --git a/src/lmic/lmic.h b/src/lmic/lmic.h index 0584c41e..8a73d902 100644 --- a/src/lmic/lmic.h +++ b/src/lmic/lmic.h @@ -103,7 +103,7 @@ extern "C"{ // Arduino LMIC version #define ARDUINO_LMIC_VERSION_CALC(major, minor, patch, local) \ - (((major) << 24u) | ((minor) << 16u) | ((patch) << 8u) | (local)) + (((major) << UINT32_C(24)) | ((minor) << UINT32_C(16)) | ((patch) << UINT32_C(8)) | ((local << UINT32_C(0)))) #define ARDUINO_LMIC_VERSION ARDUINO_LMIC_VERSION_CALC(3, 0, 99, 1) /* v3.0.99.1 */