Don't use boolean logic to increment value directly

This commit is contained in:
Roel Baars
2018-11-11 12:34:12 +01:00
committed by GitHub
parent 757c1da292
commit 83975938ef

View File

@@ -9138,7 +9138,7 @@ void CLASS identify()
parse_fuji (get4());
if (thumb_offset > 120) {
fseek (ifp, 120, SEEK_SET);
is_raw += (i = get4()) && 1;
is_raw += (i = get4()) != 0 ? 1 : 0;
if (is_raw == 2 && shot_select)
parse_fuji (i);
}