aboutsummaryrefslogtreecommitdiff
path: root/libgcc/libgcc2.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgcc/libgcc2.c')
-rw-r--r--libgcc/libgcc2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgcc/libgcc2.c b/libgcc/libgcc2.c
index a47d8af..641bc15 100644
--- a/libgcc/libgcc2.c
+++ b/libgcc/libgcc2.c
@@ -1571,7 +1571,7 @@ FUNC (DWtype u)
/* Otherwise, find the power of two. */
Wtype hi = u >> W_TYPE_SIZE;
if (hi < 0)
- hi = -hi;
+ hi = -(UWtype) hi;
UWtype count, shift;
count_leading_zeros (count, hi);