aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2014-09-15 00:28:56 +0000
committerDimitri Sokolyuk <demon@dim13.org>2014-09-15 00:28:56 +0000
commite4f0d2a8766bb67f8743ddca0bab59bf1b4af0e9 (patch)
tree0455c86b61fbb00e39dac096b179685b47ad52b6
parentd5ac9a9b3a3ca48f92daea4ae7ae54a2a1c33297 (diff)
fix casting
-rw-r--r--Sgraph.c2
1 files changed, 1 insertions, 1 deletions
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;