Skip to content

Commit

Permalink
fix data type for overflow problems
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Jul 16, 2020
1 parent de33a9e commit 84bbe95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tir/transforms/lower_tvm_builtin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ class BuiltinLower : public StmtExprMutator {
}
// call packed.
PrimExpr MakeCallPacked(const CallNode* op) {
size_t restore_shape_stack = run_shape_stack_;
int64_t restore_shape_stack = run_shape_stack_;
size_t restore_array_stack = run_array_stack_;
size_t arg_stack_begin = run_arg_stack_;
run_arg_stack_ += op->args.size();
Expand Down Expand Up @@ -251,7 +251,7 @@ class BuiltinLower : public StmtExprMutator {
}

PrimExpr MakeCallTracePacked(const CallNode* op) {
size_t restore_shape_stack = run_shape_stack_;
int64_t restore_shape_stack = run_shape_stack_;
size_t restore_array_stack = run_array_stack_;
size_t arg_stack_begin = run_arg_stack_;
run_arg_stack_ += op->args.size();
Expand Down

0 comments on commit 84bbe95

Please sign in to comment.