C
CBFalconer
pete said:Actually, (UCHAR_MAX + 1) is not portable.
If UCHAR_MAX is equal to UINT_MAX, then
(hi_mask = (UCHAR_MAX + 1) >> 1)
is equal to zero.
and, if UCHAR_MAX is equal to INT_MAX, the expression creates
undefined (or system defined) behaviour, due to the silly way that
integer promotions work. Unsignedness is not preserved.
--
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
More details at: <http://cfaj.freeshell.org/google/>
Also see <http://www.safalra.com/special/googlegroupsreply/>