From: Junio C Hamano <junkio@cox.net>
To: Andreas Ericsson <ae@op5.se>
Cc: git@vger.kernel.org
Subject: Re: type_size_sort
Date: Tue, 06 Dec 2005 13:46:50 -0800 [thread overview]
Message-ID: <7vlkyx2911.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <439604DF.5010603@op5.se> (Andreas Ericsson's message of "Tue, 06 Dec 2005 22:38:39 +0100")
Andreas Ericsson <ae@op5.se> writes:
> 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..
next prev parent reply other threads:[~2005-12-06 21:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-06 21:19 type_size_sort Morten Welinder
2005-12-06 21:38 ` type_size_sort Andreas Ericsson
2005-12-06 21:46 ` Junio C Hamano [this message]
2005-12-07 0:51 ` type_size_sort Morten Welinder
2005-12-07 2:28 ` type_size_sort Junio C Hamano
2005-12-07 3:01 ` type_size_sort Morten Welinder
2005-12-06 21:45 ` type_size_sort Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vlkyx2911.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=ae@op5.se \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).