Skip to content

Commit

Permalink
Fix spiredb so it compiles without 128-bit too
Browse files Browse the repository at this point in the history
  • Loading branch information
DataBeaver committed May 17, 2021
1 parent 284fb2f commit a691b73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spiredb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ void SpireDB::update_data()
core.set_mod(mod[0].as<unsigned>(), mod[1].as<uint16_t>());

core.update();
Number cost = (core.cost>>64 ? 0 : core.cost);
Number cost = min<Number>(core.cost, numeric_limits<int64_t>::max());
xact.exec_prepared("update_core", id, cost, current_version);
}

Expand Down

0 comments on commit a691b73

Please sign in to comment.