Skip to content

Commit

Permalink
Change compiler's generate loop counter from int to long.
Browse files Browse the repository at this point in the history
This matches the type of the values assigned to it, and exposes a bug that
was previously only showing up under Windows.
  • Loading branch information
martinwhitaker committed Dec 13, 2021
1 parent 71c36d1 commit 67b9374
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elab_scope.cc
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@ bool PGenerate::generate_scope_loop_(Design*des, NetScope*container)
}

// We're going to need a genvar...
int genvar;
long genvar;

// The initial value for the genvar does not need (nor can it
// use) the genvar itself, so we can evaluate this expression
Expand Down

0 comments on commit 67b9374

Please sign in to comment.