summaryrefslogtreecommitdiffstats
path: root/lib/fp_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/fp_lib.h')
-rw-r--r--lib/fp_lib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fp_lib.h b/lib/fp_lib.h
index de5f17f..661119a 100644
--- a/lib/fp_lib.h
+++ b/lib/fp_lib.h
@@ -124,7 +124,7 @@ static inline void wideLeftShift(rep_t *hi, rep_t *lo, int count) {
*lo = *lo << count;
}
-static inline void wideRightShiftWithSticky(rep_t *hi, rep_t *lo, int count) {
+static inline void wideRightShiftWithSticky(rep_t *hi, rep_t *lo, unsigned int count) {
if (count < typeWidth) {
const bool sticky = *lo << (typeWidth - count);
*lo = *hi << (typeWidth - count) | *lo >> count | sticky;
OpenPOWER on IntegriCloud