Skip to content

Commit f70b360

Browse files
authored
Merge pull request #76 from minoki/fix-pointer-detection
Fix pointer type detection in cross mode (again)
2 parents 1ba0929 + 76af9e6 commit f70b360

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CrossCodegen.hs

+2-2
Original file line numberDiff line numberDiff line change
@@ -589,8 +589,8 @@ runCompileIsPointerTest (ZCursor s above below) ty = do
589589
(concatMap outHeaderCProg' above) ++
590590
outHeaderCProg' s ++
591591
-- the test
592-
"void _hsc2hs_test(" ++ ty ++ " val) {\n" ++
593-
" memset(val, 0, 0);\n" ++
592+
"void *_hsc2hs_test(" ++ ty ++ " val) {\n" ++
593+
" return val;\n" ++
594594
"}\n" ++
595595
(concatMap outHeaderCProg' below)
596596
runCompileTest test

0 commit comments

Comments
 (0)