Skip to content

Commit 4c002bc

Browse files
committed
fix compilation error on osx
1 parent 2799aab commit 4c002bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python_bindings/bindings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ class Index {
430430
static Index<float> * createFromParams(const py::dict d) {
431431

432432
// check serialization version
433-
assert_true(py::int_(Index<float>::ser_version) >= d["ser_version"].cast<int>(), "Invalid serialization version!");
433+
assert_true(((int)py::int_(Index<float>::ser_version)) >= d["ser_version"].cast<int>(), "Invalid serialization version!");
434434

435435
auto space_name_=d["space"].cast<std::string>();
436436
auto dim_=d["dim"].cast<int>();

0 commit comments

Comments
 (0)