We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2799aab commit 4c002bcCopy full SHA for 4c002bc
python_bindings/bindings.cpp
@@ -430,7 +430,7 @@ class Index {
430
static Index<float> * createFromParams(const py::dict d) {
431
432
// check serialization version
433
- assert_true(py::int_(Index<float>::ser_version) >= d["ser_version"].cast<int>(), "Invalid serialization version!");
+ assert_true(((int)py::int_(Index<float>::ser_version)) >= d["ser_version"].cast<int>(), "Invalid serialization version!");
434
435
auto space_name_=d["space"].cast<std::string>();
436
auto dim_=d["dim"].cast<int>();
0 commit comments