From 038fbe609d59017f29eb2bd3704fd72cf5164209 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Mon, 13 Dec 2021 20:28:41 +0000 Subject: [PATCH] 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 67b9374c69bcd2af6066e7dc9007b4ff2b42eb15) --- elab_scope.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elab_scope.cc b/elab_scope.cc index 6c907c139..926e62efb 100644 --- a/elab_scope.cc +++ b/elab_scope.cc @@ -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