[PATCH 1/2]vbscript: Implemented builtin function CInt(try 3)

Jacek Caban jacek at codeweavers.com
Fri Apr 26 05:41:45 CDT 2013


On 04/26/13 12:02, Henri Verbeet wrote:
> On 26 April 2013 10:27, Jacek Caban <jacek at codeweavers.com> wrote:
>> - round is not portable. As I mentioned you before, Wine needs to be C89
>> compatible. If we need some features that are not part of C89, we need
>> to be careful about that and it often requires things like configure
>> checks. In case of round, replacing it with floor(x+0.5) does the trick
>> pretty well.
>>
> But that's going to do something different for negative values.

That will be different only for numbers with fractional part equal to
0.5, which we have to handle separately using both round and floor anyway.

Jacek



More information about the wine-devel mailing list