Commit 7751b062 authored by Manuel Günther's avatar Manuel Günther

Replaced mal-functioning PyNumber_Check with PyInt_Check.

parent 2c746450
......@@ -10,6 +10,7 @@
#define BOB_LEARN_LINEAR_MODULE
#include <bob.blitz/cppapi.h>
#include <bob.blitz/cleanup.h>
#include <bob.extension/defines.h>
#include <bob.io.base/api.h>
#include <bob.learn.activation/api.h>
#include <bob.learn.linear/api.h>
......@@ -208,7 +209,7 @@ static int PyBobLearnLinearMachine_init(PyBobLearnLinearMachineObject* self,
return PyBobLearnLinearMachine_init_weights(self, args, kwds);
}
if (PyNumber_Check(arg)) {
if (PyInt_Check(arg)) {
return PyBobLearnLinearMachine_init_sizes(self, args, kwds);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment