Skip to content

Commit

Permalink
added more braces to the new expressions to make clear what we test
Browse files Browse the repository at this point in the history
  • Loading branch information
msmeissn committed Jul 15, 2021
1 parent dcd6852 commit 233569b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions camlibs/ptp2/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -1395,9 +1395,9 @@ fallback: \
However, use enum position instead of value itself for comparisons as enums
are not always sorted (e.g. Auto ISO has higher numerical value but comes earlier).
*/ \
overshoot = propval.u8 == 0x01 && posnow > posnew || propval.u8 == 0xff && posnow < posnew; \
} else { \
overshoot = propval.u8 == 0x01 && dpd.CurrentValue.bits > value || propval.u8 == 0xff && dpd.CurrentValue.bits < value; \
overshoot = ((propval.u8 == 0x01) && (posnow > posnew)) || ((propval.u8 == 0xff) && (posnow < posnew)); \
} else { \
overshoot = ((propval.u8 == 0x01) && (dpd.CurrentValue.bits > value)) || ((propval.u8 == 0xff) && (dpd.CurrentValue.bits < value)); \
} \
\
if (overshoot) { \
Expand Down

0 comments on commit 233569b

Please sign in to comment.