File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ namespace matplotlibcpp {
161161 PyObject* ylist = PyList_New (y.size ());
162162
163163 PyObject* kwargs = PyDict_New ();
164- PyDict_SetItemString (kwargs, " bins" , PyFloat_FromDouble (bins));
164+ PyDict_SetItemString (kwargs, " bins" , PyLong_FromLong (bins));
165165 PyDict_SetItemString (kwargs, " color" , PyString_FromString (color.c_str ()));
166166 PyDict_SetItemString (kwargs, " alpha" , PyFloat_FromDouble (alpha));
167167
@@ -190,7 +190,7 @@ namespace matplotlibcpp {
190190 PyObject* ylist = PyList_New (y.size ());
191191 PyObject* kwargs = PyDict_New ();
192192 PyDict_SetItemString (kwargs, " label" , PyString_FromString (label.c_str ()));
193- PyDict_SetItemString (kwargs, " bins" , PyFloat_FromDouble (bins));
193+ PyDict_SetItemString (kwargs, " bins" , PyLong_FromLong (bins));
194194 PyDict_SetItemString (kwargs, " color" , PyString_FromString (color.c_str ()));
195195 PyDict_SetItemString (kwargs, " alpha" , PyFloat_FromDouble (alpha));
196196
You can’t perform that action at this time.
0 commit comments