aboutsummaryrefslogtreecommitdiffstats
path: root/src/tools/g2/pointsel.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2024-04-10 18:31:57 -0700
committerFlorin Coras <florin.coras@gmail.com>2024-04-11 01:07:59 +0000
commitd7f0daeccef4fd062e143e0030cf973e2cdf9ef9 (patch)
tree066b7a8a04784e78c9d288d871aaec0b6ec22ec8 /src/tools/g2/pointsel.c
parenta1d20405b7965eaad93809c283c1a28b2f08f6f2 (diff)
g2: fix gpointer cast complaints
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Iadd6a4dd928002e764fc52343c14403620279aa7
Diffstat (limited to 'src/tools/g2/pointsel.c')
-rw-r--r--src/tools/g2/pointsel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/g2/pointsel.c b/src/tools/g2/pointsel.c
index 59822377219..fae93365e3d 100644
--- a/src/tools/g2/pointsel.c
+++ b/src/tools/g2/pointsel.c
@@ -169,7 +169,7 @@ static void down_button(void)
static void button_click_callback(GtkButton *item, gpointer data)
{
int i;
- enum button_click click = (enum button_click)data;
+ enum button_click click = (enum button_click) (long int) data;
switch (click) {
case ALL_BUTTON: