diff options
Diffstat (limited to 'gcc/hwint.h')
-rw-r--r-- | gcc/hwint.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/hwint.h b/gcc/hwint.h index 5054d8e..8068cad 100644 --- a/gcc/hwint.h +++ b/gcc/hwint.h @@ -242,7 +242,7 @@ floor_log2 (unsigned HOST_WIDE_INT x) static inline int ceil_log2 (unsigned HOST_WIDE_INT x) { - return floor_log2 (x - 1) + 1; + return x == 0 ? 0 : floor_log2 (x - 1) + 1; } static inline int |