wesnoth-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Wesnoth-dev] patch for fixed-point calculations


From: Guillaume Melquiond
Subject: Re: [Wesnoth-dev] patch for fixed-point calculations
Date: Sun, 6 Feb 2005 23:25:22 +0100

On Sun, 6 Feb 2005 23:11:37 +0100, Jon Daniel wrote:
> I thought C converts >> to an arithmetic shift if the operators are
> signed int.
> But I maybe wrong and you've got a reason for that if statement.

On negative values, >> is implementation-defined (and the division
suffers from the same limitation, so it is not a suitable
replacement).

As for the patch itself, I don't really mind. But the FIXMEs have to
be removed before the patch is applied... :-)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]