On Fri, 8 Apr 2005, Serassio Guido wrote:

The Windows port builds fine, but after the merge I have a lot (> 20) of warnings like:

C:\work\nt-2.5\src\stat.c(1440) : warning C4244: '=' : conversion from '__int64 ' to 'unsigned int ', possible loss of data
C:\work\nt-2.5\src\store_io.c(30) : warning C4244: '=' : conversion from '__int64 ' to 'unsigned int ', possible loss of data
C:\work\nt-2.5\src\mime.c(450) : warning C4244: '=' : conversion from '__int64 ' to 'int ', possible loss of data


The majority of them comes from operations between 32 bit size_t and 64 bit squid_off_t.
Reading LFS specifications, if I understood correctly, it seems that size_t is still a 32 bit type.
What is wrong here, is a Windows specific problem ?

Most likely a generic problem. There is some safe casts from 64 to 32 bits if you have compiled with 32-bit file I/O (32-bit off_t), but these should all be within the store layer, not elsewhere.


Can you please send a complete list with the contents of the relevant lines (your linenumbers differ somewhat from the normal sources) so I can audit which of these are for real and which are just stupid warnings.

Regards
Henrik

Reply via email to