aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-05-05 20:27:20 +0000
committerNick Mathewson <nickm@torproject.org>2004-05-05 20:27:20 +0000
commit6cfdc90d926b149cefba59c27eac6a966ba31877 (patch)
tree5491f51130e90acb3396a557f41772c122ee738e
parent8aebd83a0eb3e6cb312ccbf8e0cbd9b3b48294be (diff)
downloadtor-6cfdc90d926b149cefba59c27eac6a966ba31877.tar
tor-6cfdc90d926b149cefba59c27eac6a966ba31877.tar.gz
Use intptr_t when playing with void*s
svn:r1795
-rw-r--r--src/or/test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/test.c b/src/or/test.c
index 21913af25..2e34d2fc4 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);
}