Skip to content

Commit

Permalink
fix: sign warnings in bank.h
Browse files Browse the repository at this point in the history
  • Loading branch information
c-dilks committed Dec 19, 2023
1 parent 9122a65 commit be8e643
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hipo4/bank.h
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ namespace hipo {
private:
hipo::bank &ib;
std::vector<int> rows;
int current_index;
decltype(rows)::size_type current_index;
public:
iterator();
iterator(hipo::bank &b, std::vector<int> index) : ib(b) {
Expand All @@ -333,7 +333,7 @@ namespace hipo {
}
bool end(){return current_index>=rows.size();}
int index(){ return rows[current_index];}
void show(){ for(int i = 0; i < rows.size(); i++) printf("%5d ",rows[i]); printf("\n");}
void show(){ for(const auto& row : rows) printf("%5d ",row); printf("\n");}

static hipo::iterator link(hipo::bank &b, int row, int column);
static hipo::iterator reduce(std::function<double(hipo::bank&, int)> func, hipo::bank& bank);
Expand Down

0 comments on commit be8e643

Please sign in to comment.