diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-04-26 13:08:49 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-04-26 13:08:49 +0000 |
commit | 6b1220b61d5ed2481dbf31714a68be6ef6eed3da (patch) | |
tree | 2fdb2eb09bbfae448dc87dc0e9fc214452cb12e1 /lib/inet_pton.c | |
parent | 9d7330d8790be54c3885e23359b25534974cfb82 (diff) | |
download | curl-6b1220b61d5ed2481dbf31714a68be6ef6eed3da.tar.gz |
Cory Nelson's work on nuking compiler warnings when building on x64 with
VS2005.
Diffstat (limited to 'lib/inet_pton.c')
-rw-r--r-- | lib/inet_pton.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/inet_pton.c b/lib/inet_pton.c index e8d4636b3..35eef49d0 100644 --- a/lib/inet_pton.c +++ b/lib/inet_pton.c @@ -114,7 +114,7 @@ inet_pton4(const char *src, unsigned char *dst) const char *pch; if ((pch = strchr(digits, ch)) != NULL) { - u_int val = *tp * 10 + (pch - digits); + u_int val = *tp * 10 + (u_int)(pch - digits); if (val > 255) return (0); |