diff options
author | Alexandre Ganea <alex_toresh@yahoo.fr> | 2024-01-16 12:28:21 -0500 |
---|---|---|
committer | Alexandre Ganea <alex_toresh@yahoo.fr> | 2024-01-17 07:23:58 -0500 |
commit | 61b5bf85f0908b75f736c77f619480094697c435 (patch) | |
tree | c530d0498086344c64f0195fdec9382d19f46d81 /compiler-rt | |
parent | 64874e5ab5fd102344d43ac9465537a44130bf19 (diff) | |
download | llvm-61b5bf85f0908b75f736c77f619480094697c435.zip llvm-61b5bf85f0908b75f736c77f619480094697c435.tar.gz llvm-61b5bf85f0908b75f736c77f619480094697c435.tar.bz2 |
[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
```
Diffstat (limited to 'compiler-rt')
-rw-r--r-- | compiler-rt/lib/builtins/fp_extend_impl.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/builtins/fp_extend_impl.inc b/compiler-rt/lib/builtins/fp_extend_impl.inc index e16b55d..f4f6630 100644 --- a/compiler-rt/lib/builtins/fp_extend_impl.inc +++ b/compiler-rt/lib/builtins/fp_extend_impl.inc @@ -60,7 +60,7 @@ static __inline dst_t __extendXfYf2__(src_t a) { dst_rep_t dstExp; dst_rep_t dstSigFrac; - if (srcExp >= 1 && srcExp < srcInfExp) { + if (srcExp >= 1 && srcExp < (src_rep_t)srcInfExp) { // a is a normal number. dstExp = (dst_rep_t)srcExp + (dst_rep_t)(dstExpBias - srcExpBias); dstSigFrac = (dst_rep_t)srcSigFrac << (dstSigFracBits - srcSigFracBits); |