From: Andrew Morton <akpm@osdl.org>
To: Takashi Iwai <tiwai@suse.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH trivial] Fix the comparison with sizeof()
Date: Tue, 14 Feb 2006 21:54:15 -0800 [thread overview]
Message-ID: <20060214215415.078e11de.akpm@osdl.org> (raw)
In-Reply-To: <s5h3bilbteq.wl%tiwai@suse.de>
Takashi Iwai <tiwai@suse.de> wrote:
>
> - min((unsigned int)scsicmd->cmnd[13], sizeof(cp)));
> + min((size_t)scsicmd->cmnd[13], sizeof(cp)));
Note that this can also be done with the min_t() macro, although I can't
immediately think of a reason why min_t() is any better..
prev parent reply other threads:[~2006-02-15 5:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-14 20:02 Takashi Iwai
2006-02-15 5:54 ` Andrew Morton [this message]
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=20060214215415.078e11de.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tiwai@suse.de \
/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
all inboxes | Powered by JetHome®