cURL / Mailing Lists / curl-library / Single Mail

curl-library

curl_off_t to long compiler warnings in visual studio 2010 x86

From: Ray Satiro <raysatiro_at_yahoo.com>
Date: Wed, 1 Jan 2014 13:05:07 -0800 (PST)

2>..\..\curl\lib\file.c(542): warning C4244: 'function' : conversion from 'curl_off_t' to 'long', possible loss of data        lseek(fd, data->state.resume_from, SEEK_SET)) 104>..\..\curl\src\tool_cb_see.c(82): warning C4244: 'function' : conversion from 'curl_off_t' to 'long', possible loss of data in tool_seek_cb():   if(LSEEK_ERROR == lseek(in->fd, offset, whence)) with lseek as: long __cdecl lseek(int _FileHandle, long _Offset, int _Origin) I used cmake to make the vs project files. USE_WIN32_LARGE_FILES is not defined, should it be?  There is some workaround in src\tool_cb_see.c tool_seek_cb() for working with larger offsets but I don't see one in lib\file.c. Does curl come with large file support by default? Also the solution contains over 100 of Test lib<n> projects. Is there a simple way to run all the tests after they're built? Thanks

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