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

Re: type_size_sort

From
Junio C Hamano <junkio@cox.net>
Date
Dec 6, 2005, 21:46 UTC
Message-ID
<7vlkyx2911.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<439604DF.5010603@op5.se>
Andreas Ericsson <ae@op5.se> writes:
Show 6 quoted lines
> It's perfectly correct. If the same list was to be passed to 
> create_sorted_list() twice it will come out exactly the same the second 
> time as it did the first. The only thing to remark on is that the return 
> above could be written as below instead:
>
> 	return a - b;

And I suspect Morten would say the same thing about ptrdiff_t could be larger than an int.

I personally feel this would not make any practical difference on sane architectures either way, though..

Previous: Andreas EricssonNext: Morten Welinder
Message 3 of 7 in “type_size_sort”
  1. Morten WelinderDec 6, 2005
  2. Andreas EricssonDec 6, 2005
  3. Junio C HamanoDec 6, 2005
  4. Morten WelinderDec 7, 2005
  5. Junio C HamanoDec 7, 2005
  6. Morten WelinderDec 7, 2005
  7. Junio C HamanoDec 6, 2005

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.