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

Re: size_t vs "unsigned long"

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 3, 2007, 21:05 UTC
Message-ID
<7v641newom.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20071003204801.GC28188@artemis.corp>
Pierre Habouzit <madcoder@debian.org> writes:
Show 5 quoted lines
>   Well, afaict, on every linux archs I know of, unsigned longs and
> size_t are the same. Though, I don't know if that holds for the msys
> port, and if that does not holds, then a s/unsigned long/size_t/ would
> help them. Else, for consistency sake, I believe the change is a good
> one.

FWIW, I am already getting bitten on a FC box with gcc 4.1.1 20060525 that warns about the wrong type being passed, as I usually build things with -Werror; the issue is not just "they are of the same underlying type".

Previous: Pierre HabouzitNext: Jan Wielemaker
Message 3 of 8 in “size_t vs "unsigned long"”
  1. Junio C HamanoOct 3, 2007
  2. Pierre HabouzitOct 3, 2007
  3. Junio C HamanoOct 3, 2007
  4. Jan WielemakerOct 3, 2007
  5. Pierre HabouzitOct 3, 2007
  6. Jan WielemakerOct 4, 2007
  7. Florian WeimerOct 3, 2007
  8. Kyle MoffettOct 5, 2007

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.