diff options
author | Yang Tse <yangsita@gmail.com> | 2010-12-01 23:33:43 +0100 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2010-12-01 23:33:43 +0100 |
commit | 7e3f0bffe5d930489db80e1d65c27fe44a51f6f4 (patch) | |
tree | 77c1c1161573e324846c8ee46857810613e4dde0 /lib/parsedate.c | |
parent | 5d47bf377668846d915c3d8a3f22cfdf66041512 (diff) | |
download | curl-7e3f0bffe5d930489db80e1d65c27fe44a51f6f4.tar.gz |
fix compiler warning: conversion may lose significant bits
Diffstat (limited to 'lib/parsedate.c')
-rw-r--r-- | lib/parsedate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/parsedate.c b/lib/parsedate.c index 5d8af2692..3e003db31 100644 --- a/lib/parsedate.c +++ b/lib/parsedate.c @@ -83,6 +83,7 @@ #include <curl/curl.h> #include "rawstr.h" +#include "warnless.h" #include "parsedate.h" const char * const Curl_wkday[] = @@ -378,7 +379,7 @@ int Curl_parsedate(const char *date, time_t *output) secnum = 0; } else { - val = (int)strtol(date, &end, 10); + val = curlx_sltosi(strtol(date, &end, 10)); if((tzoff == -1) && ((end - date) == 4) && |