aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-09-28 17:01:23 +0000
committerYang Tse <yangsita@gmail.com>2009-09-28 17:01:23 +0000
commit5b11e3883cfc58c470f0dd241d5efac391bd8e53 (patch)
tree40665e44ce6a22e628ff22c6840305ba4afc373d /lib
parent7d22ce5573952dec6e3fa724d5e6f071cf8947ff (diff)
fix compiler warning: conversion from "long" to "size_t" may lose sign
Diffstat (limited to 'lib')
-rw-r--r--lib/cookie.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/cookie.c b/lib/cookie.c
index 6b19ab166..d121c0b29 100644
--- a/lib/cookie.c
+++ b/lib/cookie.c
@@ -442,9 +442,9 @@ Curl_cookie_add(struct SessionHandle *data,
if(!queryp)
endslash = strrchr(path, '/');
else
- endslash = memrchr(path, '/', queryp - path);
+ endslash = memrchr(path, '/', (size_t)(queryp - path));
if(endslash) {
- size_t pathlen = endslash-path+1; /* include the ending slash */
+ size_t pathlen = (size_t)(endslash-path+1); /* include ending slash */
co->path=malloc(pathlen+1); /* one extra for the zero byte */
if(co->path) {
memcpy(co->path, path, pathlen);