From 25d50a00c5f81196d98613169179aed58653d8bf Mon Sep 17 00:00:00 2001 From: Tue Ly Date: Wed, 2 Feb 2022 10:18:28 -0500 Subject: [PATCH] [libc][Obvious] Fix a mismatch signature of HighPrecisionDecimal::should_round_up. Its input should be int32_t instead of uint32_t. Reviewed By: michaelrj, sivachandra Differential Revision: https://reviews.llvm.org/D118791 --- libc/src/__support/high_precision_decimal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/src/__support/high_precision_decimal.h b/libc/src/__support/high_precision_decimal.h index 00ccd70..1b941da 100644 --- a/libc/src/__support/high_precision_decimal.h +++ b/libc/src/__support/high_precision_decimal.h @@ -111,7 +111,7 @@ class HighPrecisionDecimal { uint8_t digits[MAX_NUM_DIGITS]; private: - bool should_round_up(uint32_t roundToDigit) { + bool should_round_up(int32_t roundToDigit) { if (roundToDigit < 0 || roundToDigit >= this->num_digits) { return false; } -- 2.7.4