On Thu, 15 Jan 2004, mayaray wrote:
>i put my Clamp function:
>unsigned char Clamp(float i) {
> if (i>256.0f)
^^^ should be 255.0
> return 256;
^^^ should be 255
> if (i<0.0f)
> return 0;
> return (unsigned char)i;
>}
How were you able to add bugs in such a small piece of code?-)