git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Taylor Blau <me@ttaylorr.com>
Date
Oct 16, 2024, 20:22 UTC
Message-ID
<ZxAgmvoyxZNnY1nQ@nand.local>
In-Reply-To
<20241012062243.3350-1-soekkle@freenet.de>
On Sat, Oct 12, 2024 at 08:22:43AM +0200, Sören Krecker wrote:
Show 10 quoted lines
> 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

Previous: Torsten BögershausenNext: Sören Krecker
Message 12 of 16 in “mimgw: remove Compiler Warnings”
  1. mimgw: remove Compiler WarningsSören Krecker, Oct 9, 2024
  2. Torsten BögershausenOct 9, 2024
  3. Phillip WoodOct 9, 2024
  4. mimgw: remove Compiler WarningsSören Krecker, Oct 9, 2024
  5. 1/1 [PATCH] mimgw: remove Compiler WarningsSören Krecker, Oct 9, 2024
  6. Junio C HamanoOct 9, 2024
  7. Phillip WoodOct 10, 2024
  8. [PATCH] mimgw: Remove Compiler WarningsSören Krecker, Oct 10, 2024
  9. Torsten BögershausenOct 10, 2024
  10. mingw.c: Fix complier warnings for a 64 bit msvcSören Krecker, Oct 12, 2024
  11. Torsten BögershausenOct 16, 2024
  12. Taylor BlauOct 16, 2024
  13. 0/1 mingw.c: Fix complier warnings for a 64 bit msvcSören Krecker, Oct 17, 2024
  14. 1/1 [PATCH] mingw.c: Fix complier warnings for a 64 bit msvcSören Krecker, Oct 17, 2024
  15. Taylor BlauOct 17, 2024
  16. Junio C HamanoOct 10, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.