mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-04 19:44:16 +01:00
wutsocket: avoid aliasing issues
This commit is contained in:
parent
174b0c0a86
commit
d0dc9869e5
@ -5,9 +5,9 @@
|
||||
long
|
||||
gethostid(void)
|
||||
{
|
||||
long ip = -1;
|
||||
ACGetAssignedAddress((uint32_t*) &ip);
|
||||
return ip;
|
||||
uint32_t ip = UINT32_MAX;
|
||||
ACGetAssignedAddress(&ip);
|
||||
return (long)ip;
|
||||
}
|
||||
|
||||
int
|
||||
|
Loading…
Reference in New Issue
Block a user