aboutsummaryrefslogtreecommitdiffstats
path: root/src/grt/ghwlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/grt/ghwlib.c')
-rw-r--r--src/grt/ghwlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/grt/ghwlib.c b/src/grt/ghwlib.c
index 6115ff628..340e12d08 100644
--- a/src/grt/ghwlib.c
+++ b/src/grt/ghwlib.c
@@ -200,7 +200,7 @@ ghw_read_sleb128 (struct ghw_handler *h, int32_t *res)
if ((v & 0x80) == 0)
{
if ((v & 0x40) && off < 32)
- r |= -1 << off;
+ r |= ~0U << off;
break;
}
}