On Mon, Oct 25, 1999 at 17:00:29 -0500, David DeSimone wrote:

> >   (info->lobin + info->hibin + info->ascii)*4
> >     < ((info->lobin + info->hibin)*3 + info->ascii)*3
> 
> But then you risk integer overflow.

If this is the case, with the other integer version too...

>  Which the division helps avoid,

Not much. The division is performed after the *4. The only difference
is the second member. But given the fact that both members have the
same order of magnitude...

> and
> in fact, floating-point helps avoid it even more.  :)

Yes, but anyway, if there is any risk with the integer versions,
I think that many variables shouldn't have type long any more.

> But if you're attaching files that big... errf..  :)

I think that something like a crash with such files would be a good
feature preserving the netiquette. :)

-- 
Vincent Lefèvre <[EMAIL PROTECTED]> - PhD student in Computer Science
Web: <http://www.vinc17.org/> or <http://www.ens-lyon.fr/~vlefevre/> - 100%
validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International
des Jeux Mathématiques et Logiques, TETRHEX, etc.

Reply via email to