remove compiler warnings by explicit casting double -> int etc.
This commit is contained in:
parent
046dc4410b
commit
af420a6a01
|
|
@ -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 :
|
||||
|
|
|
|||
|
|
@ -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…
Reference in New Issue