Skip to content

Commit 4a37116

Browse files
watsonmwmsmeissn
authored andcommitted
Clear up operator precedence in Sony spotfocusarea and focusmagnify.
1 parent a63da6c commit 4a37116

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

camlibs/ptp2/config.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -9340,7 +9340,7 @@ _get_Sony_FocusMagnifySetting(CONFIG_GET_ARGS) {
93409340
gp_widget_set_name (*widget, menu->name);
93419341

93429342
currentVal = dpd->CurrentValue.u64;
9343-
x = (int)(currentVal >> 16 & 0xffff);
9343+
x = (int)((currentVal >> 16) & 0xffff);
93449344
y = (int)(currentVal & 0xffff);
93459345

93469346
// Current magnification level
@@ -9389,7 +9389,7 @@ _put_Sony_FocusMagnifySetting(CONFIG_PUT_ARGS)
93899389
uint64_t currentVal;
93909390

93919391
currentVal = dpd->CurrentValue.u64;
9392-
x = (int)(currentVal >> 16 & 0xffff);
9392+
x = (int)((currentVal >> 16) & 0xffff);
93939393
y = (int)(currentVal & 0xffff);
93949394

93959395
CR (gp_widget_get_value(widget, &xval));
@@ -9442,7 +9442,7 @@ _put_Sony_SpotFocusArea(CONFIG_PUT_ARGS) {
94429442
// Camera must be set to an autofocus mode and focusarea has to be set to one of the Spot Focus modes
94439443

94449444
currentVal = dpd->CurrentValue.u32;
9445-
x = (int)(currentVal >> 16 & 0xffff);
9445+
x = (int)((currentVal >> 16) & 0xffff);
94469446
y = (int)(currentVal & 0xffff);
94479447

94489448
CR (gp_widget_get_value(widget, &xval));

0 commit comments

Comments
 (0)