Skip to content

Commit

Permalink
Fix how SNodeOpStmt's type is set.
Browse files Browse the repository at this point in the history
  • Loading branch information
k-ye authored and yuanming-hu committed Jan 21, 2020
1 parent c5ce590 commit f294c94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion taichi/ir.h
Original file line number Diff line number Diff line change
Expand Up @@ -1397,7 +1397,7 @@ class SNodeOpStmt : public Stmt {
if (val)
add_operand(this->val);
width() = 1;
element_type() = snode->dt;
element_type() = DataType::i32;
}

DEFINE_ACCEPT
Expand Down

0 comments on commit f294c94

Please sign in to comment.