Hello,

In the process of converting some of the PLplot demos to Lisp as part of 
the cl-plplot project I found that example 29 triggers a floating point 
exception. This is not something that a C compiler will normally report, 
but you can make it (or at least gcc) more strict about this. I believe 
that the problem occurs in the plP_wcpcx() function in src/plcvt.c, 
where we attempt to convert -3.917103e+15 to an integer resulting in an 
overflow error.

The easiest way to see this is to pull my fe_demo branch from here:
https://github.com/HazenBabcock/PLplot

Or you can look at the two files that I modified to demonstrate this issue:
https://github.com/HazenBabcock/PLplot/blob/fe_demo/examples/c/x29c.c
https://github.com/HazenBabcock/PLplot/blob/fe_demo/src/plcvt.c

-Hazen

------------------------------------------------------------------------------
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to