[libc-commits] [libc] [libc] Fix arm32 build error. (PR #96997)
via libc-commits
libc-commits at lists.llvm.org
Thu Jun 27 20:17:32 PDT 2024
https://github.com/lntue created https://github.com/llvm/llvm-project/pull/96997
None
>From 67abfe80c781df6e6f322f8d35144bf99e62dbf4 Mon Sep 17 00:00:00 2001
From: Tue Ly <lntue.h at gmail.com>
Date: Fri, 28 Jun 2024 03:15:17 +0000
Subject: [PATCH] [libc] Fix arm32 build error.
---
libc/src/__support/high_precision_decimal.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libc/src/__support/high_precision_decimal.h b/libc/src/__support/high_precision_decimal.h
index 2c5a349e4495e..9524edf470903 100644
--- a/libc/src/__support/high_precision_decimal.h
+++ b/libc/src/__support/high_precision_decimal.h
@@ -409,7 +409,8 @@ class HighPrecisionDecimal {
result *= 10;
++cur_digit;
}
- return result + this->should_round_up(this->decimal_point, round);
+ return result + static_cast<T>(static_cast<unsigned>(
+ this->should_round_up(this->decimal_point, round)));
}
// Extra functions for testing.
More information about the libc-commits
mailing list