DevIL icon indicating copy to clipboard operation
DevIL copied to clipboard

Expression is always true

Open AppChecker opened this issue 7 years ago • 0 comments

Hi!

These expressions:

  1. src-IL/src/il_states.cpp if (Param >= 0 || Param <= 2) {
  2. src-IL/src/il_states.cpp if (Param >= -1 || Param <= 255) {
  3. src-IL/src/il_states.cpp#
#define IL_DXT1             0x0706
#define IL_DXT5             0x070A
if (Param >= IL_DXT1 || Param <= IL_DXT5 ...) {

is always true (for any value of Param variable).

These possible defects found by AppChecker

AppChecker avatar Jun 14 '17 14:06 AppChecker