commit: ce799b41b9a8983c05e5e225014ffdf193eb2d03
parent: 244248ded914e16f569e99664267d1c01eb1cbef
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sat, 22 Jun 2019 04:49:46 +0200
Fix -Wconversion and -Wsign-conversion warnings
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/badwolf.c b/badwolf.c
@@ -222,7 +222,7 @@ commonCb_key_press_event(struct Window *window, GdkEvent *event, struct Client *
}
if((((GdkEventKey *)event)->keyval >= GDK_KEY_0) &&
(((GdkEventKey *)event)->keyval <= GDK_KEY_9))
- gtk_notebook_set_current_page(notebook, (((GdkEventKey *)event)->keyval - GDK_KEY_1));
+ gtk_notebook_set_current_page(notebook, (gint)(((GdkEventKey *)event)->keyval - GDK_KEY_1));
}
if(browser != NULL)
@@ -452,7 +452,7 @@ WebViewCb_scroll_event(GtkWidget *widget, GdkEvent *event, gpointer data)
(void)widget;
struct Client *browser = (struct Client *)data;
gdouble delta_x, delta_y;
- gfloat zoom;
+ gdouble zoom;
if(((GdkEventScroll *)event)->state & GDK_CONTROL_MASK)
{