Skip to content

Commit

Permalink
hierarchy: Make it bigger (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
hovind authored Sep 24, 2024
1 parent 713b1a0 commit 73d2294
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wellen/src/hierarchy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Self> {
NonZeroU16::new(index as u16 + 1).map(Self)
NonZeroU32::new(index as u32 + 1).map(Self)
}

#[inline]
Expand Down

0 comments on commit 73d2294

Please sign in to comment.