From 7f14ebc84bac28253b908d3e795d88df83f065a6 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 31 Aug 2020 01:19:06 +0200 Subject: [PATCH] take care of type when shifting --- armsrc/util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/armsrc/util.h b/armsrc/util.h index c6523a813..1d8586c43 100644 --- a/armsrc/util.h +++ b/armsrc/util.h @@ -63,7 +63,7 @@ #endif #ifndef REV64 -#define REV64(x) (REV32(x) + (REV32((x) >> 32) << 32)) +#define REV64(x) (REV32(x) + ((uint64_t)(REV32((x) >> 32) << 32))) #endif #ifndef BIT32