Skip to content

Commit

Permalink
[misc] Fix a few compilation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
k-ye committed Jul 5, 2022
1 parent c4e8d36 commit 324e527
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion taichi/codegen/spirv/lib_tiny_ir.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class Polymorphic {
return typeid(*this) == typeid(other) && is_equal(other);
}

const bool equals(const Polymorphic *other) const {
bool equals(const Polymorphic *other) const {
return (*this) == (*other);
}

Expand Down
2 changes: 1 addition & 1 deletion taichi/ir/statements.h
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ class ConstStmt : public Stmt {
explicit ConstStmt(const LaneAttribute<TypedConstant> &val) : val(val) {
TI_ASSERT(val.size() == 1); // TODO: support vectorized case
ret_type = val[0].dt;
for (int i = 0; i < val.size(); i++) {
for (std::size_t i = 0; i < val.size(); i++) {
TI_ASSERT(val[0].dt == val[i].dt);
}
TI_STMT_REG_FIELDS;
Expand Down

0 comments on commit 324e527

Please sign in to comment.