[PATCH] D64666: Allow Clang -Wconversion, -Wimplicit-float-conversion warns about integer type -> floating point type implicit conversion precision loss.
Eino-Ville Talvala via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 12 14:33:15 PDT 2019
etalvala added inline comments.
================
Comment at: clang/test/Sema/implicit-float-conversion.c:29
+ double e = 0.0;
+ double f = i + e;
+}
----------------
should this also test the case of:
`
long g = 222222222222L;
long h = g + a;
`
or is that unlikely to fail if the assignment-to-float variant succeeds?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D64666/new/
https://reviews.llvm.org/D64666
More information about the cfe-commits
mailing list