Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Michal Jaegermann <michal@ellpspace.math.ualberta.ca>
To: axp-list@redhat.com
Subject: Re: [PATCH] eliminate compile warnings
Date: Fri, 8 Nov 2002 10:28:23 -0700	[thread overview]
Message-ID: <20021108102823.A4439@ellpspace.math.ualberta.ca> (raw)
In-Reply-To: <20021108073845.A17905@Marvin.DL8BCU.ampr.org>; from dl8bcu@dl8bcu.de on Fri, Nov 08, 2002 at 07:38:45AM +0000

On Fri, Nov 08, 2002 at 07:38:45AM +0000, Thorsten Kranzkowski wrote:
> 
> I will give my patch another thought and I will feed it to you in smaller 
> pieces and with comments.

You will have much better chances for correctness and acceptance if
you will try to _reduce_ number of casts by making sure that types of
objects agree, if only possible, instead of sprinkling code with extra
casts.  Every such thing is a potential spot for a masked bug although
side effects of a missed signed/unsigned comparison can also be nasty.
But if you want a unsigned constant with all bits on then ~0UL is surely
preferable over casting (-1) to unsigned long; even if just for clarity.

BTW - contrary to claim by Richard I found something like 45 lines
changed in that patch insted of "hundreds". :-)  No, I am not trying
to convince anybody that this number is small enough.

   Michal




  reply	other threads:[~2002-11-08 17:28 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-06 21:47 [PATCH] eliminate compile warnings Thorsten Kranzkowski
2002-11-07 14:22 ` George France
2002-11-07 17:17   ` Ted Goodridge
2002-11-07 19:59     ` George France
2002-11-07 20:28   ` Thorsten Kranzkowski
2002-11-07 20:55     ` George France
2002-11-08  1:33     ` Richard Henderson
2002-11-08  2:54       ` George France
2002-11-08  3:25         ` Richard Henderson
2002-11-08  4:04           ` George France
2002-11-08  7:38       ` Thorsten Kranzkowski
2002-11-08 17:28         ` Michal Jaegermann [this message]
2002-11-08 21:50           ` Thorsten Kranzkowski
2002-11-09  0:42             ` Michal Jaegermann
2002-11-09  1:32               ` Thorsten Kranzkowski
     [not found]   ` <3DCA9A88.4060109@pobox.com>
2002-11-07 21:43     ` Thorsten Kranzkowski
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox