changed error message to include sizes
svn: r17246
This commit is contained in:
parent
d18403a303
commit
357b8cb90b
|
@ -1271,9 +1271,9 @@
|
|||
(unless (= (ctype-sizeof to-type)
|
||||
(ctype-sizeof from-type))
|
||||
(raise-mismatch-error 'cast
|
||||
(format "representation sizes of types differ: ~e to "
|
||||
from-type)
|
||||
to-type))
|
||||
(format "representation sizes of from and to types differ: ~e and "
|
||||
(ctype-sizeof from-type))
|
||||
(ctype-sizeof to-type)))
|
||||
(let ([p2 (malloc from-type)])
|
||||
(ptr-set! p2 from-type p)
|
||||
(ptr-ref p2 to-type)))
|
||||
|
|
Loading…
Reference in New Issue
Block a user