Browse Source

Add explicit cast to pvoid for Windows

nxrighthere 7 years ago
parent
commit
6e5aeb6fa3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Native/enet.h

+ 1 - 1
Source/Native/enet.h

@@ -5134,7 +5134,7 @@ extern "C" {
         }
 
         int enet_address_get_host_ip(const ENetAddress *address, char *name, size_t nameLength) {
-            if (inet_ntop(AF_INET6, &address->host, name, nameLength) == NULL) {
+            if (inet_ntop(AF_INET6, (PVOID)&address->host, name, nameLength) == NULL) {
                 return -1;
             }