From b5eb3cd88599e27800799974907965fff9e0e7c6 Mon Sep 17 00:00:00 2001 From: vurtun Date: Sun, 10 Jun 2018 17:24:50 +0200 Subject: [PATCH] Fixed gcc integer conversion warning --- nuklear.h | 2 +- src/nuklear_panel.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nuklear.h b/nuklear.h index 92ee962..50fdf49 100644 --- a/nuklear.h +++ b/nuklear.h @@ -15565,7 +15565,7 @@ nk_panel_begin(struct nk_context *ctx, const char *title, enum nk_panel_type pan /* window movement by dragging */ left_mouse_down = in->mouse.buttons[NK_BUTTON_LEFT].down; - left_mouse_clicked = in->mouse.buttons[NK_BUTTON_LEFT].clicked; + left_mouse_clicked = (int)in->mouse.buttons[NK_BUTTON_LEFT].clicked; left_mouse_click_in_cursor = nk_input_has_mouse_click_down_in_rect(in, NK_BUTTON_LEFT, header, nk_true); if (left_mouse_down && left_mouse_click_in_cursor && !left_mouse_clicked) { diff --git a/src/nuklear_panel.c b/src/nuklear_panel.c index 60f5890..8eb680e 100644 --- a/src/nuklear_panel.c +++ b/src/nuklear_panel.c @@ -138,7 +138,7 @@ nk_panel_begin(struct nk_context *ctx, const char *title, enum nk_panel_type pan /* window movement by dragging */ left_mouse_down = in->mouse.buttons[NK_BUTTON_LEFT].down; - left_mouse_clicked = in->mouse.buttons[NK_BUTTON_LEFT].clicked; + left_mouse_clicked = (int)in->mouse.buttons[NK_BUTTON_LEFT].clicked; left_mouse_click_in_cursor = nk_input_has_mouse_click_down_in_rect(in, NK_BUTTON_LEFT, header, nk_true); if (left_mouse_down && left_mouse_click_in_cursor && !left_mouse_clicked) {