aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rtlil.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/rtlil.h')
-rw-r--r--kernel/rtlil.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rtlil.h b/kernel/rtlil.h
index 8cf707999..f759a014f 100644
--- a/kernel/rtlil.h
+++ b/kernel/rtlil.h
@@ -712,7 +712,7 @@ struct RTLIL::Monitor
unsigned int hash() const { return hashidx_; }
Monitor() {
- unsigned int hashidx_count = 0;
+ static unsigned int hashidx_count = 0;
hashidx_ = hashidx_count++;
}