Mercurial > hg > openttd
changeset 11581:10fe0dcbe9fb draft
(svn r15951) -Fix (r15946) [FS#2803]: ofcourse a couple of OSes/compilers do not provide a nice 'interface', so we have to do it the ugly way.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sat, 04 Apr 2009 08:48:12 +0000 |
parents | 86681e01a240 |
children | a72797507693 |
files | src/network/core/address.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/network/core/address.cpp +++ b/src/network/core/address.cpp @@ -125,8 +125,8 @@ break; case AF_INET6: - ip = (uint32*)((struct sockaddr_in6*)&this->address)->sin6_addr.s6_addr32; - mask = (uint32*)((struct sockaddr_in6*)&mask_address.address)->sin6_addr.s6_addr32; + ip = (uint32*)&((struct sockaddr_in6*)&this->address)->sin6_addr; + mask = (uint32*)&((struct sockaddr_in6*)&mask_address.address)->sin6_addr; break; default: