Skip to content

Commit 376150d

Browse files
nordic-krchjukkar
authored andcommitted
[nrf fromlist] sys: util: Extend IS_EQ to support unsigned literals
Extend IS_EQ to include unsigned integer literals like 0U. Upstream PR #: 82133 Signed-off-by: Krzysztof Chruściński <[email protected]>
1 parent 51d538f commit 376150d

File tree

3 files changed

+16402
-4099
lines changed

3 files changed

+16402
-4099
lines changed

include/zephyr/sys/util_internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
#define Z_IS_ENABLED3(ignore_this, val, ...) val
5151

5252
/* Implementation of IS_EQ(). Returns 1 if _0 and _1 are the same integer from
53-
* 0 to 4095, 0 otherwise.
53+
* 0 to 4096, 0 otherwise.
5454
*/
5555
#define Z_IS_EQ(_0, _1) Z_HAS_COMMA(Z_CAT4(Z_IS_, _0, _EQ_, _1)())
5656

0 commit comments

Comments
 (0)