cURL

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[curl:bugs] #1399 Lossy conversion warning with Visual C++

From: Marcel Raad <marcelraad_at_users.sf.net>
Date: Tue, 22 Jul 2014 09:17:15 +0000

---
** [bugs:#1399] Lossy conversion warning with Visual C++**
**Status:** open
**Created:** Tue Jul 22, 2014 09:17 AM UTC by Marcel Raad
**Last Updated:** Tue Jul 22, 2014 09:17 AM UTC
**Owner:** nobody
In libcurl 7.37.1, there is a new warning in conncache.c Curl_conncache_add_conn when compiling for 64-bit targets with Visual Studio:
warning C4267: '=' : conversion from 'size_t' to 'long', possible loss of data
The member connection_id of struct connectdata is a long (always a 32-bit signed integer on Visual C++) and the member next_connection_id of struct conncache is a size_t, so one of them should be changed to match the other.
Please find attached a patch for lib/conncache.h that changes the size_t in struct conncache to long (the less invasive change as that variable is only ever used in a single code line).
---
Sent from sourceforge.net because curl-tracker@cool.haxx.se is subscribed to https://sourceforge.net/p/curl/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/curl/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
Received on 2014-07-22

These mail archives are generated by hypermail.

donate! Page updated March 21, 2014.
web site info

File upload with ASP.NET