summaryrefslogtreecommitdiffstats
path: root/Utilities/cmcurl/inet_pton.c
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-03-30 18:49:56 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-03-30 18:49:56 (GMT)
commit5a2668b326471874ca69357af831cdcf1575c621 (patch)
tree92f40c9de267766f0533df44212ec2df6415aa47 /Utilities/cmcurl/inet_pton.c
parent08b14163ee2cc9cced08d80b2c81b29c83072229 (diff)
downloadCMake-5a2668b326471874ca69357af831cdcf1575c621.zip
CMake-5a2668b326471874ca69357af831cdcf1575c621.tar.gz
CMake-5a2668b326471874ca69357af831cdcf1575c621.tar.bz2
ENH: add support for win64 for visual studio 2005 ide and nmake, also fix warnings produced by building for win64
Diffstat (limited to 'Utilities/cmcurl/inet_pton.c')
-rw-r--r--Utilities/cmcurl/inet_pton.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Utilities/cmcurl/inet_pton.c b/Utilities/cmcurl/inet_pton.c
index 5e8e9b3..ed74c26 100644
--- a/Utilities/cmcurl/inet_pton.c
+++ b/Utilities/cmcurl/inet_pton.c
@@ -113,11 +113,11 @@ inet_pton4(const char *src, unsigned char *dst)
const char *pch;
if ((pch = strchr(digits, ch)) != NULL) {
- u_int new = *tp * 10 + (pch - digits);
+ size_t new = *tp * 10 + (pch - digits);
if (new > 255)
return (0);
- *tp = new;
+ *tp = (unsigned char)new;
if (! saw_digit) {
if (++octets > 4)
return (0);