On Sun, 20 Feb 2005, Jan-Benedict Glaw wrote:

> On Sun, 2005-02-20 21:58:54 +0100, J. <[EMAIL PROTECTED]>
> wrote in message <[EMAIL PROTECTED]>:
> >  int red = 0; 
> >  int green = 128; 
> >  int blue = 0;
> > 
> >  printf("%d %d %d\n", (100 / (256 / red)), 
> >    (100 / (256 / green)), (100 / (256 / blue)));
> 
> With red = blue = 0, you're having two divisions by zero. That won't
> fly...
> 
> MfG, JBG

Aiii.. of course !!

Thnkx....

J.

-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" 
in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to