diff --git a/src/ifcparse/parse.cpp b/src/ifcparse/parse.cpp index fac05fef0a..aaa75e0bc4 100644 --- a/src/ifcparse/parse.cpp +++ b/src/ifcparse/parse.cpp @@ -3173,7 +3173,7 @@ bool file::all_referencing_instances(int instance_id, const std::function, impl::rocks_db_file_storage>) { // @todo no lower/upper_bounds() implemented yet - auto prefix = "v|" + std::to_string(instance_id) + "|"; + auto prefix = rocksdb_key::inverse_prefix(instance_id); auto it = std::unique_ptr(x.db->NewIterator(rocksdb::ReadOptions())); it->Seek(prefix); while (it->Valid() && it->key().starts_with(prefix)) {