summaryrefslogtreecommitdiff
path: root/src/Language/Fiddle/Compiler/ConsistencyCheck.hs
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2024-10-22 19:37:45 -0600
committerJosh Rahm <joshuarahm@gmail.com>2024-10-22 19:37:45 -0600
commit977758cb8c968a9b371fdddbadf456e92107d11c (patch)
tree975ba34b97a98cffcee37d8d933f2b2d3ecc9471 /src/Language/Fiddle/Compiler/ConsistencyCheck.hs
parent0a0f200a79a9e78b97addda6bd8e879d8c1c5d3e (diff)
downloadfiddle-977758cb8c968a9b371fdddbadf456e92107d11c.tar.gz
fiddle-977758cb8c968a9b371fdddbadf456e92107d11c.tar.bz2
fiddle-977758cb8c968a9b371fdddbadf456e92107d11c.zip
Implement bitfield arrays.
Diffstat (limited to 'src/Language/Fiddle/Compiler/ConsistencyCheck.hs')
-rw-r--r--src/Language/Fiddle/Compiler/ConsistencyCheck.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Language/Fiddle/Compiler/ConsistencyCheck.hs b/src/Language/Fiddle/Compiler/ConsistencyCheck.hs
index a8d9758..3def59d 100644
--- a/src/Language/Fiddle/Compiler/ConsistencyCheck.hs
+++ b/src/Language/Fiddle/Compiler/ConsistencyCheck.hs
@@ -322,7 +322,7 @@ checkEnumConsistency expr enumBody@(EnumBody {enumConsts = constants}) = do
foldlM
( \imap (undirected -> enumConst) -> do
number <- case enumConst of
- EnumConstantDecl _ expr _ -> expressionToIntM expr
+ EnumConstantDecl _ expr _ -> return $ trueValue expr
EnumConstantReserved expr _ -> expressionToIntM expr
when (number >= 2 ^ declaredSize) $