[Issue 818] std.socket.InternetAddress.sin needs to be properly initialized on OS X

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jan 30 00:35:27 PST 2007


http://d.puremagic.com/issues/show_bug.cgi?id=818


afb at algonet.se changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |




------- Comment #5 from afb at algonet.se  2007-01-30 02:35 -------
This seems to be a bug in the generated configunix.d:
        char[8] sin_zero = [0];

As you are pointing out, it should instead have been:
        ubyte[8] sin_zero = 0;

This is a GDC bug, so that it works in DMD doesn't help.
(std.c.windows.socket and std.c.linux.socket uses ubyte)


-- 



More information about the D.gnu mailing list