Skip to content

Commit

Permalink
remove typeofs
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikRafacz committed Apr 22, 2022
1 parent 7692abb commit 338ac21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inst/include/tidysq/ProtoSq.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ namespace tidysq {

inline bool operator==(const ProtoSq<INTERNAL, PROTO> &other) const {
if ((alphabet_ != other.alphabet_) || (content_.size() != other.content_.size())) return false;
for (typeof(content_.size()) i = 0; i < content_.size(); i++) {
for (LenSq i = 0; i < content_.size(); i++) {
if ((*this)[i] != other[i]) return false;
}
return true;
Expand Down
2 changes: 1 addition & 1 deletion inst/include/tidysq/sqapply.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace tidysq {
ops::OperationVectorToVector<VECTOR_IN, ELEMENT_IN, VECTOR_OUT, ELEMENT_OUT> &operation) {
if (operation.may_return_early(vector_in)) return operation.return_early(vector_in);
VECTOR_OUT ret = operation.initialize_vector_out(vector_in);
for (typeof(vector_in.size()) i = 0; i < vector_in.size(); i++) {
for (LenSq i = 0; i < vector_in.size(); i++) {
ret[i] = operation(vector_in[i]);
}
return ret;
Expand Down

0 comments on commit 338ac21

Please sign in to comment.