Commit 7ef9377d authored by Tollef Fog Heen's avatar Tollef Fog Heen

Add casts for to make LLVM on Mac OS X happy

parent 020df866
......@@ -71,15 +71,15 @@ pan_ws(const struct ws *ws, int indent)
vsb_printf(vsp, "%*sid = \"%s\",\n", indent + 2, "", ws->id);
vsb_printf(vsp, "%*s{s,f,r,e} = {%p", indent + 2, "", ws->s);
if (ws->f > ws->s)
vsb_printf(vsp, ",+%ld", ws->f - ws->s);
vsb_printf(vsp, ",+%ld", (long) (ws->f - ws->s));
else
vsb_printf(vsp, ",%p", ws->f);
if (ws->r > ws->s)
vsb_printf(vsp, ",+%ld", ws->r - ws->s);
vsb_printf(vsp, ",+%ld", (long) (ws->r - ws->s));
else
vsb_printf(vsp, ",%p", ws->r);
if (ws->e > ws->s)
vsb_printf(vsp, ",+%ld", ws->e - ws->s);
vsb_printf(vsp, ",+%ld", (long) (ws->e - ws->s));
else
vsb_printf(vsp, ",%p", ws->e);
vsb_printf(vsp, "},\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment