[Issue 9904] typeof(null) can be casted to aggregate type if .sizeof equals size of pointer
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Apr 8 07:47:35 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9904
--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-04-08 07:47:34 PDT ---
(In reply to comment #0)
> struct S1
> {
> int x;
> }
>
> struct S2
> {
> int x;
> byte b;
> }
Those should really use size_t to reproduce on all systems:
> struct S1
> {
> size_t x;
> }
>
> struct S2
> {
> size_t x;
> byte b;
> }
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list