Explorar o código

fixing more signess problems https://travis-ci.org/acplt/open62541/builds/47113733#L334

Stasik0 %!s(int64=10) %!d(string=hai) anos
pai
achega
9b8b1f71cc
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      examples/networklayer_tcp.c

+ 5 - 1
examples/networklayer_tcp.c

@@ -64,7 +64,11 @@ typedef struct NetworkLayerTCP {
     /* We remove the connection links only in the main thread. Attach
        to-be-deleted links with atomic operations */
     struct deleteLink {
-        UA_Int32 sockfd;
+#ifdef _WIN32
+		UA_UInt32 sockfd;
+#else
+		UA_Int32 sockfd;
+#endif
         struct deleteLink *next;
     } *deleteLinkList;
 } NetworkLayerTCP;