Skip to content

Commit 61b5bf8

Browse files
committed
[compiler-rt] On Windows, silence warning when building with latest MSVC
This fixes: ``` [3334/7449] Building C object projects\compiler-rt\lib\builtins\CMakeFiles\clang_rt.builtins-x86_64.dir\extendsfdf2.c.obj C:\git\llvm-project\compiler-rt\lib\builtins\fp_extend_impl.inc(63): warning C4018: '<': signed/unsigned mismatch ```
1 parent 64874e5 commit 61b5bf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/builtins/fp_extend_impl.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ static __inline dst_t __extendXfYf2__(src_t a) {
6060
dst_rep_t dstExp;
6161
dst_rep_t dstSigFrac;
6262

63-
if (srcExp >= 1 && srcExp < srcInfExp) {
63+
if (srcExp >= 1 && srcExp < (src_rep_t)srcInfExp) {
6464
// a is a normal number.
6565
dstExp = (dst_rep_t)srcExp + (dst_rep_t)(dstExpBias - srcExpBias);
6666
dstSigFrac = (dst_rep_t)srcSigFrac << (dstSigFracBits - srcSigFracBits);

0 commit comments

Comments
 (0)