Change compiler's generate loop counter from int to long.

This matches the type of the values assigned to it, and exposes a bug that
was previously only showing up under Windows.

(cherry picked from commit 67b9374c69)
This commit is contained in:
Martin Whitaker 2021-12-13 20:28:41 +00:00
parent a317a066af
commit 038fbe609d
1 changed files with 1 additions and 1 deletions

View File

@ -924,7 +924,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