From af420a6a015b00d9947e08153955340a64f85326 Mon Sep 17 00:00:00 2001 From: rlar Date: Thu, 30 Jun 2011 18:48:05 +0000 Subject: [PATCH] remove compiler warnings by explicit casting double -> int etc. --- ChangeLog | 6 ++++++ src/frontend/plotting/x11.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 730843e6f..74adb691f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-06-30 Robert Larice + * src/frontend/plotting/x11.c : + remove compiler warnings by explicit casting double -> int etc. + extend Holger's commit from 2011-06-11 to x11.c + FIXME, consider rounding towards nearest instead of towards zero + 2011-06-30 Robert Larice * src/spicelib/devices/hisim2/hsm2eval.c , * src/spicelib/devices/hisimhv/hsmhveval.c : diff --git a/src/frontend/plotting/x11.c b/src/frontend/plotting/x11.c index e5dc51182..c19e6c38c 100644 --- a/src/frontend/plotting/x11.c +++ b/src/frontend/plotting/x11.c @@ -539,8 +539,8 @@ X11_Arc(int x0, int y0, int radius, double theta, double delta_theta) } if (DEVDEP(currentgraph).isopen) { - t1 = 64 * (180.0 / M_PI) * theta; - t2 = 64 * (180.0 / M_PI) * delta_theta; + t1 = (int) (64 * (180.0 / M_PI) * theta); + t2 = (int) (64 * (180.0 / M_PI) * delta_theta); if (t2 == 0) return 0; XDrawArc(display, DEVDEP(currentgraph).window, DEVDEP(currentgraph).gc,