Skip to content

Commit 3a95ea0

Browse files
committed
Negative value shift is problematic. Force unsigned.
1 parent a4c80fb commit 3a95ea0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/hal/utils/scope_disp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ static int handle_click(GtkWidget *widget, GdkEventButton *event, gpointer data)
515515
} else {
516516
int z = select_trace(event->x, event->y);
517517
int new_channel = z & 0xff;
518-
int channel_part = z >> 8;
518+
int channel_part = (unsigned)z >> 8;
519519

520520
disp->selected_part = channel_part;
521521

0 commit comments

Comments
 (0)