From 6cfdc90d926b149cefba59c27eac6a966ba31877 Mon Sep 17 00:00:00 2001
From: Nick Mathewson <nickm@torproject.org>
Date: Wed, 5 May 2004 20:27:20 +0000
Subject: [PATCH] Use intptr_t when playing with void*s

svn:r1795
---
 src/or/test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/or/test.c b/src/or/test.c
index 21913af25a..2e34d2fc44 100644
--- a/src/or/test.c
+++ b/src/or/test.c
@@ -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);
 }
 
-- 
GitLab