]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - windows/winnet.c
Cast pointers to uintptr_t instead of unsigned {long,int}.
[PuTTY.git] / windows / winnet.c
index e1beb5d194b40e38d562bb4928aa672f898685cb..fa2de80967565e91cd7161512fd2646f7d563bfc 100644 (file)
@@ -138,7 +138,7 @@ static int cmpfortree(void *av, void *bv)
 static int cmpforsearch(void *av, void *bv)
 {
     Actual_Socket b = (Actual_Socket) bv;
-    unsigned long as = (unsigned long) av, bs = (unsigned long) b->s;
+    uintptr_t as = (uintptr_t) av, bs = (uintptr_t) b->s;
     if (as < bs)
        return -1;
     if (as > bs)