File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ namespace matplotlibcpp {
161
161
PyObject* ylist = PyList_New (y.size ());
162
162
163
163
PyObject* kwargs = PyDict_New ();
164
- PyDict_SetItemString (kwargs, " bins" , PyFloat_FromDouble (bins));
164
+ PyDict_SetItemString (kwargs, " bins" , PyLong_FromLong (bins));
165
165
PyDict_SetItemString (kwargs, " color" , PyString_FromString (color.c_str ()));
166
166
PyDict_SetItemString (kwargs, " alpha" , PyFloat_FromDouble (alpha));
167
167
@@ -190,7 +190,7 @@ namespace matplotlibcpp {
190
190
PyObject* ylist = PyList_New (y.size ());
191
191
PyObject* kwargs = PyDict_New ();
192
192
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));
194
194
PyDict_SetItemString (kwargs, " color" , PyString_FromString (color.c_str ()));
195
195
PyDict_SetItemString (kwargs, " alpha" , PyFloat_FromDouble (alpha));
196
196
You can’t perform that action at this time.
0 commit comments