July 17, 2005 casting to bit | ||||
---|---|---|---|---|
| ||||
I realize this isn't right, but nonetheless it crashes 0.128 :) int main(char[][] args) { printf("compression tests:"); char[] data; data = new char[8]; bit* pData; pData = &cast(bit*)data; return 0; } |
July 18, 2005 Re: casting to bit | ||||
---|---|---|---|---|
| ||||
Posted in reply to kenny Attachments:
| kenny wrote: > I realize this isn't right, but nonetheless it crashes 0.128 :) > > int main(char[][] args) > { > printf("compression tests:"); > > char[] data; > data = new char[8]; > > bit* pData; > pData = &cast(bit*)data; > > return 0; > } Added to DStress as http://dstress.kuehne.cn/nocompile/o/cast_28.d Thomas |
Copyright © 1999-2021 by the D Language Foundation