Преглед на файлове

added explicit cast to pvoid for win

Vladyslav Hrytsenko преди 5 години
родител
ревизия
84eae826f3
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      include/enet.h

+ 1 - 1
include/enet.h

@@ -5536,7 +5536,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;
         }