Skip to content

Display and control your Android device

Fix undefined left shift

Romain Vimont97b001e7c010
diff --git a/app/src/util/buffer_util.h b/app/src/util/buffer_util.h
index ab22ab24..337bb262 100644
--- a/app/src/util/buffer_util.h
+++ b/app/src/util/buffer_util.h
@@ -33,7 +33,7 @@ buffer_read16be(const uint8_t *buf) {
static inline uint32_t
buffer_read32be(const uint8_t *buf) {
- return (buf[0] << 24) | (buf[1] << 16) | (buf[2] << 8) | buf[3];
+ return ((uint32_t) buf[0] << 24) | (buf[1] << 16) | (buf[2] << 8) | buf[3];
}
static inline uint64_t