]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Use intptr_t when playing with void*s
authorNick Mathewson <nickm@torproject.org>
Wed, 5 May 2004 20:27:20 +0000 (20:27 +0000)
committerNick Mathewson <nickm@torproject.org>
Wed, 5 May 2004 20:27:20 +0000 (20:27 +0000)
svn:r1795

src/or/test.c

index 21913af25abe416e23c976daba3ccb6ddb3a19cd..2e34d2fc44c6a6706c4f8e09a635e784fd28f6e8 100644 (file)
@@ -501,7 +501,7 @@ static void* _squareAndRemoveK4(const char *key, void*val, void *data)
     ++(*ip);
     return NULL;
   }
-  v = (int)val;
+  v = (intptr_t)val;
   return (void*)(v*v);
 }