You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
XMPFiles/source/FileHandlers/FLV_Handler.cpp:200:55: warning: converting the result of '<<' to a boolean; did you mean '(buffer[7] << 24) != 0'? [-Wint-in-bool-context]
info->time = GetUns24BE ( &buffer[4] ) || (buffer[7] << 24);
^
1 warning generated.
Expected Behaviour
Properly written code, no warning.
Actual Behaviour
Seems to want to put a bool value into an XMP_Uns32 with implicit conversion. Seems to be wrong.
Reproduce Scenario (including but not limited to)
Steps to Reproduce
Build with clang (Linux) with -Wint-in-bool-context
Platform and Version
clang version 13.0.0 (Fedora 13.0.0-3.fc35)
Sample Code that illustrates the problem
Logs taken while reproducing problem
The text was updated successfully, but these errors were encountered:
This is triggered by clang -Wint-in-bool-context
Expected Behaviour
Properly written code, no warning.
Actual Behaviour
Seems to want to put a
bool
value into anXMP_Uns32
with implicit conversion. Seems to be wrong.Reproduce Scenario (including but not limited to)
Steps to Reproduce
Build with clang (Linux) with
-Wint-in-bool-context
Platform and Version
clang version 13.0.0 (Fedora 13.0.0-3.fc35)
Sample Code that illustrates the problem
Logs taken while reproducing problem
The text was updated successfully, but these errors were encountered: