On Fri, 21 Nov 2014 14:55:45 +0000
FrankLike via Digitalmars-d <[email protected]> wrote:

> On Friday, 21 November 2014 at 13:59:08 UTC, ketmar via 
> Digitalmars-d wrote:
> 
> > any code which does something like `if (a-b < 0)` is broken. it
> 
> Modify it: 
> https://github.com/D-Programming-Language/druntime/blob/master/src/core/checkedint.d
> 
> Modify method: subu(uint ...) or subu(ulong ...)
> if(x<y)
> return y -x ;
> else
>   return x -y;
> 
> It will be not broken.
and it will not do the same anymore too. it's not a fix at all.

Attachment: signature.asc
Description: PGP signature

Reply via email to