lava / matplotlib-cpp

Extremely simple yet powerful header-only C++ plotting library built on the popular matplotlib
MIT License
4.27k stars 1.12k forks source link

Fixed implicit conversion from long to double #333

Open eduardobehr opened 1 year ago

eduardobehr commented 1 year ago

Caller function has arguments of type long in its signature. Thus, PyLong_FromLong is more appropriate and does not break the code as it was before (runtime_error was being thrown).

This fix was reported by #310 and successfully tested on Linux Fedora.