Corrected BYTESIN for mobile arrays

This commit is contained in:
Neil Brown 2009-03-23 21:18:52 +00:00
parent 658bfd08e4
commit d3f4ff1a9a

View File

@ -364,6 +364,7 @@ cgenBytesIn m t v
= do tell ["sizeof("]
genType t
tell [")"]
genBytesIn' (A.Mobile t@(A.Array {})) = genBytesIn' t
genBytesIn' (A.Mobile _)
= tell ["sizeof(void*)"]
genBytesIn' (A.List _)