cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: 7.21.4: Win32 warning C4244 in transfer.c line 553 introduced

From: Kamil Dudka <kdudka_at_redhat.com>
Date: Wed, 23 Feb 2011 20:07:16 +0100

On Wednesday 23 February 2011 16:35:03 Stefan Krause wrote:
> in transfer.c, line 553 the following compiler warning is generated when
> compiling with VC 2005:
>
>
> \transfer.c(553) : warning C4244: 'function' : conversion from 'time_t' to
> 'long', possible loss of data
>
> if(!Curl_meets_timecondition(data, k->timeofdoc)) {
>
>
> In 7.21.3 that warning hasn't been present. It seems to be introduced by
> the rewritten part of the source around these line.

Thank you for the report. Does the attached patch solve the problem?

Kamil

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html

Received on 2011-02-23