From: Marek Vasut Date: Sun, 30 Aug 2020 22:52:09 +0000 (+0200) Subject: aarch64: Fix MSVC warnings X-Git-Tag: orc-0.4.33~63 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1a2e5aba2be1895c51e0702a296aaf0fab55699f;p=platform%2Fupstream%2Forc.git aarch64: Fix MSVC warnings This fixes various warnings reported by the MSVC in CI. No functional change. Signed-off-by: Marek Vasut --- diff --git a/orc/orcarm.c b/orc/orcarm.c index 60452e6..94ab88e 100644 --- a/orc/orcarm.c +++ b/orc/orcarm.c @@ -1247,7 +1247,7 @@ encode_logical_imm (int size, orc_uint64 val, orc_uint32 *encoded) } while (size > 2); /** decide the rotations to make the element be: 0^m 1^n */ - mask = ((orc_uint64)-1ULL) >> (64 - size); + mask = ((orc_uint64)~0ULL) >> (64 - size); val &= mask; if (mask_shifted_ones (val)) {