Subject: Re: timeout issue in scsi drivers: mstohz()
To: None <tech-kern@netbsd.org>
From: Greg A. Woods <woods@weird.com>
List: tech-kern
Date: 04/05/2002 14:44:53
[ On Friday, April 5, 2002 at 18:04:24 (+0100), David Laight wrote: ]
> Subject: Re: timeout issue in scsi drivers: mstohz()
>
> However (a + 1ull) is long long if a is unsigned long.

isn't that equivalent to (a + (unsigned long long) 1)?  Which means the
result should still be 'unsigned long long' no matter what type of
integer 'a' is since 'unsigned long long' is the largest supported
integer type in any known compiler.  (In C things generally never get
smaller when "the usual conversions" are applied, and IIRC they are
never supposed to become signed if any term is unsigned either.)

-- 
								Greg A. Woods

+1 416 218-0098;  <gwoods@acm.org>;  <g.a.woods@ieee.org>;  <woods@robohack.ca>
Planix, Inc. <woods@planix.com>; VE3TCP; Secrets of the Weird <woods@weird.com>