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

Re: [PATCH/RFC v2 1/1] Use size_t instead of 'unsigned long' for data in memory

From
Torsten Bögershausen <tboegi@web.de>
Date
Nov 20, 2018, 05:16 UTC
Message-ID
<20181120051649.GA16814@tor.lan>
In-Reply-To
<20181120050454.16673-1-tboegi@web.de>
On Tue, Nov 20, 2018 at 06:04:54AM +0100, tboegi@web.de wrote:
Show 12 quoted lines
> From: Torsten Bögershausen <tboegi@web.de>
> 
> Currently the length of data which is stored in memory is stored
> in "unsigned long" at many places in the code base.
> This is OK when both "unsigned long" and size_t are 32 bits,
> (and is OK when both are 64 bits).
> On a 64 bit Windows system am "unsigned long" is 32 bit, and
> that may be too short to measure the size of objects in memory,
> a size_t is the natural choice.
> 
> Improve the code base in "small steps", as small as possible.
> The smallest step seems to be much bigger than expected.

Ops, it seems as if I send this message out twice - please ignore the "PATCH/RFC v2 1/1" Sorry for the noise.

Previous: tboegi@web.de
Message 2 of 2 in “Use size_t instead of 'unsigned long' for data in memory”
  1. 1/1 Use size_t instead of 'unsigned long' for data in memorytboegi@web.de, Nov 20, 2018
  2. Torsten BögershausenNov 20, 2018

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.