From 73d2294c79e974b130ff7b77eda3654a9f505fb6 Mon Sep 17 00:00:00 2001 From: hovind <9824853+hovind@users.noreply.github.com> Date: Tue, 24 Sep 2024 17:44:55 +0200 Subject: [PATCH] hierarchy: Make it bigger (#24) --- wellen/src/hierarchy.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wellen/src/hierarchy.rs b/wellen/src/hierarchy.rs index 6965e2b..b92c935 100644 --- a/wellen/src/hierarchy.rs +++ b/wellen/src/hierarchy.rs @@ -75,12 +75,12 @@ impl Default for VarRef { /// Replaces the old `ModuleRef`. #[derive(Debug, Clone, Copy, Eq, PartialEq)] #[cfg_attr(feature = "serde1", derive(serde::Serialize, serde::Deserialize))] -pub struct ScopeRef(NonZeroU16); +pub struct ScopeRef(NonZeroU32); impl ScopeRef { #[inline] fn from_index(index: usize) -> Option { - NonZeroU16::new(index as u16 + 1).map(Self) + NonZeroU32::new(index as u32 + 1).map(Self) } #[inline]