Skip to content

Commit 0254160

Browse files
Fix unused variable due to precedence goof
1 parent beaa96a commit 0254160

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Backends/CStatic.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ unhandledEventFunction debug handler (StateMachineDeclarator smName) e@(Event ev
202202
(Just $ Left $ Declarator (Just $ fromList [POINTER Nothing]) $ IDirectDeclarator event_var)]
203203
(CompoundStatement
204204
LEFTCURLY
205-
(if not $ null handler || not debug then Nothing else
205+
(if (not $ null handler) || not debug then Nothing else
206206
(Just $ fromList [Declaration (fromList [C CONST, B CHAR])
207207
(Just $ fromList [InitDeclarator (Declarator (Just $ fromList [POINTER Nothing]) $ IDirectDeclarator name_var)
208208
(Just $ Pair EQUAL $ AInitializer evname_e)])

0 commit comments

Comments
 (0)