Issue 64732
Summary BUGPRONE-IMPLICIT-WIDENING-OF-MULTIPLICATION-RESULT for constants
Labels new issue
Assignees
Reporter DenisYaroshevskiy
    Hi

The check keeps reporting for constants, which seems so wrong.

```
  constexpr std::size_t k1Mb = 1024 * 1024;
```

I get a

```
performing an implicit widening conversion to type 'const std::size_t' (aka 'const unsigned long') of a multiplication performed in type 'int'
() make conversion explicit to silence this warning
```

I don't think this is a good warning.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to