From e4f0d2a8766bb67f8743ddca0bab59bf1b4af0e9 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Mon, 15 Sep 2014 00:28:56 +0000 Subject: fix casting --- Sgraph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sgraph.c b/Sgraph.c index 04b1e4f..3bbbc12 100644 --- a/Sgraph.c +++ b/Sgraph.c @@ -213,7 +213,7 @@ Redisplay(Widget w, XEvent *event, Region r) width - 2 * BORDER, height - 2 * BORDER); */ if (sw->sgraph.data != NULL) - warnx("%d", *sw->sgraph.data); + warnx("%d", *(int *)sw->sgraph.data); XClearWindow(XtDisplay(sw), XtWindow(sw)); n = (n + 1) % width; -- cgit v1.2.3