Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Mar 2000 04:46:27 -0500
From:      Garance A Drosihn <drosih@rpi.edu>
To:        hackers@FreeBSD.ORG
Cc:        Bruce Evans <bde@zeta.org.au>, Peter Dufault <dufault@hda.com>, Ed Hall <edhall@screech.weirdnoise.com>
Subject:   Re: Handling maximum values in C (was: MAX_UID)
Message-ID:  <v0421010eb4ff97839e46@[128.113.24.47]>
In-Reply-To: <v0421010db4ff669a1fd6@[128.113.24.47]>
References:  <v0421010db4ff669a1fd6@[128.113.24.47]>

next in thread | previous in thread | raw e-mail | index | archive | help
At 3:04 AM -0500 3/23/00, I (Garance A Drosihn) wrote:
>Once I found the messages,
>it took me another 30 seconds to realize the above is only for
>UNSIGNED types.  For signed types, all of the above just result in a
>"max value" of -1...  (so imagine the fun if some arbitrary type is
>changed from 'signed short' to 'unsigned int'...)

That last part was SUPPOSED to be "imagine the fun if some arbitrary
type is changed from 'unsigned short' (were these tricks work) to
'signed int' (where the tricks would result in a "max" value of -1).

time for me to get some sleep, I guess...


---
Garance Alistair Drosehn           =   gad@eclipse.acs.rpi.edu
Senior Systems Programmer          or  drosih@rpi.edu
Rensselaer Polytechnic Institute


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?v0421010eb4ff97839e46>