Browse Source

remove compiler warnings by explicit casting double -> int etc.

rlar 15 years ago
parent
commit
af420a6a01
  1. 6
      ChangeLog
  2. 4
      src/frontend/plotting/x11.c

6
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 :

4
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,

Loading…
Cancel
Save