* Fix FURI_BIT_SET Co-authored-by: gornekich <n.gorbadey@gmail.com> Co-authored-by: SG <who.just.the.doctor@gmail.com>
@@ -85,7 +85,11 @@ extern "C" {
#endif
#ifndef FURI_BIT_SET
-#define FURI_BIT_SET(x, n) ((x) |= (1 << (n)))
+#define FURI_BIT_SET(x, n) \
+ ({ \
+ __typeof__(x) _x = (1); \
+ (x) |= (_x << (n)); \
+ })
#ifndef FURI_BIT_CLEAR