mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Роман Донченко" <dpb@corrigendum.ru>
To: "Linux Kernel" <linux-kernel@vger.kernel.org>,
	"Toralf Förster" <toralf.foerster@gmx.de>
Subject: Re: [PATCH] x86: fix -Wsign-compare warnings in uaccess.h
Date: Sat, 27 Jun 2015 22:20:40 +0300	[thread overview]
Message-ID: <op.x0wlcqiynngjn5@freezie> (raw)
In-Reply-To: <558EF68B.7000702@gmx.de>

Toralf Förster <toralf.foerster@gmx.de> писал в своём письме Sat, 27 Jun  
2015 22:16:27 +0300:

>> The casts are safe, since those conditions are only evaluated when sz  
>> >= 0.
>
>
> Wouldn't in this case the condition "sz < 0" be superfluously ?

No, sz can be negative. I meant that if sz < 0, then the second halves  
won't be evaluated (though even if they did, it wouldn't matter).

  reply	other threads:[~2015-06-27 19:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-27 19:16 Toralf Förster
2015-06-27 19:20 ` Роман Донченко [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-06-27 16:57 Роман Донченко

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=op.x0wlcqiynngjn5@freezie \
    --to=dpb@corrigendum.ru \
    --cc=linux-kernel@vger.kernel.org \
    --cc=toralf.foerster@gmx.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®