[MPlayer-dev-eng] [PATCH] cropdetect

Loren Merritt lorenm at u.washington.edu
Wed Aug 11 07:54:49 CEST 2004


On Tue, 10 Aug 2004, Tristan Seligmann wrote:
> On Tue, Aug 10, 2004 at 16:40:04 -0500, Joey Parrish wrote:
> > Does C do stupid things with negative number and modulo math?
>
> Yes. -1 % 2 == -1.
>
> Feel free to bang your head against the nearest wall now.

Even worse: "The sign of the result for % is machine-dependent for
negative operands." -- K&R

--Loren Merritt




More information about the MPlayer-dev-eng mailing list