[PATCH] D46535: Correct warning on Float->Integer conversions.

Eli Friedman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 8 12:21:58 PDT 2018


efriedma added a comment.

The check for whether an input is "out of range" doesn't handle fractions correctly.  Testcase:

  int a() { return 2147483647.5; }
  unsigned b() { return -.5; }


Repository:
  rC Clang

https://reviews.llvm.org/D46535





More information about the cfe-commits mailing list