Skip to content

Commit

Permalink
[checkpoint] Don't depend on long
Browse files Browse the repository at this point in the history
  • Loading branch information
mbs-octoml committed Dec 14, 2021
1 parent 9c9f585 commit 2bfe2ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/vm/executable.cc
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ PackedFunc Executable::GetFunction(const std::string& name, const ObjectPtr<Obje
return PackedFunc([this](TVMArgs args, TVMRetValue* rv) {
CHECK_EQ(args.size(), 2);
std::string path = args[0];
size_t byte_limit = args[1].operator long();
MoveLateBoundConstantsToFile(path, byte_limit);
uint64_t byte_limit = args[1];
MoveLateBoundConstantsToFile(path, static_cast<size_t>(byte_limit));
});
} else if (name == "load_late_bound_consts") {
return PackedFunc([this](TVMArgs args, TVMRetValue* rv) {
Expand Down

0 comments on commit 2bfe2ef

Please sign in to comment.