Fixed genBytesIn for mobile and list types in the C backend
This commit is contained in:
parent
4e6b166696
commit
104bdf5d0a
|
@ -391,6 +391,10 @@ cgenBytesIn m t v
|
||||||
= do tell ["sizeof("]
|
= do tell ["sizeof("]
|
||||||
call genType t
|
call genType t
|
||||||
tell [")"]
|
tell [")"]
|
||||||
|
genBytesIn' (A.Mobile _)
|
||||||
|
= tell ["sizeof(void*)"]
|
||||||
|
genBytesIn' (A.List _)
|
||||||
|
= tell ["sizeof(void*)"]
|
||||||
genBytesIn' t
|
genBytesIn' t
|
||||||
= do f <- fget getScalarType
|
= do f <- fget getScalarType
|
||||||
case f t of
|
case f t of
|
||||||
|
|
Loading…
Reference in New Issue
Block a user