From b479c2f951e7b5c1c46c367ff9d4a8bca13ed710 Mon Sep 17 00:00:00 2001 From: Old-Ding <35417409+Old-Ding@users.noreply.github.com> Date: Mon, 29 Jun 2026 09:06:32 +0800 Subject: [PATCH] pico_binary_info: avoid uint in standalone header --- .../pico_binary_info/include/pico/binary_info/structure.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/pico_binary_info/include/pico/binary_info/structure.h b/src/common/pico_binary_info/include/pico/binary_info/structure.h index 13e5de323..088ebdced 100644 --- a/src/common/pico_binary_info/include/pico/binary_info/structure.h +++ b/src/common/pico_binary_info/include/pico/binary_info/structure.h @@ -42,7 +42,7 @@ typedef struct _binary_info_core binary_info_t; // note plan is to reserve c1 = 0->31 for "collision tags"; i.e. // for which you should always use random IDs with the binary_info, // giving you 4 + 8 + 32 = 44 bits to avoid collisions -#define BINARY_INFO_MAKE_TAG(c1, c2) ((((uint)c2&0xffu)<<8u)|((uint)c1&0xffu)) +#define BINARY_INFO_MAKE_TAG(c1, c2) ((((unsigned int)c2&0xffu)<<8u)|((unsigned int)c1&0xffu)) // Raspberry Pi defined. do not use #define BINARY_INFO_TAG_RASPBERRY_PI BINARY_INFO_MAKE_TAG('R','P')