Issue 139467
Summary bugprone-narrowing-conversions false positive for contional _expression_ (in C)
Labels false-positive
Assignees
Reporter AndreyG
    ```c
char test(int cond, char c) {
	char ret = cond > 0 ? ':' : c; // warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined
	return ret;
}
```
https://godbolt.org/z/6P8Yaqn4o
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to