Re: [PATCH v4] mingw.c: Fix complier warnings for a 64 bit msvc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Oct 12, 2024 at 08:22:43AM +0200, Sören Krecker wrote:
> Remove some complier warnings from msvc in compat/mingw.c for value
> truncation from 64 bit to 32 bit integers.
>
> Compiling compat/mingw.c under a 64 bit version of msvc produces
> warnings. An "int" is 32 bit, and ssize_t or size_t should be 64 bit
> long. Prepare compat/vcbuild/include/unistd.h to have a 64 bit type
> _ssize_t, when _WIN64 is defined and 32 bit otherwise.
>
> Further down in this include file, as before,ssize_t is defined as
> _ssize_t, if needed.

There is a missing ' ' space character between "before," and "ssize_t",
but I fixed it up when queueing.

Thanks!

Thanks,
Taylor




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux