Fixed genBytesIn for mobile and list types in the C backend

This commit is contained in:
Neil Brown 2008-06-01 19:50:53 +00:00
parent 4e6b166696
commit 104bdf5d0a

View File

@ -391,6 +391,10 @@ cgenBytesIn m t v
= do tell ["sizeof("]
call genType t
tell [")"]
genBytesIn' (A.Mobile _)
= tell ["sizeof(void*)"]
genBytesIn' (A.List _)
= tell ["sizeof(void*)"]
genBytesIn' t
= do f <- fget getScalarType
case f t of