Changeset 1211

Show
Ignore:
Timestamp:
07/04/09 03:13:50 (3 years ago)
Author:
andrei
Message:

minor

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/phobos/std/math.d

    r1175 r1211  
    206206 * = hypot(z.re, z.im). 
    207207 */ 
    208 pure nothrow Num abs(Num)(Num x) if (is(typeof(Num >= 0)) && is(typeof(-Num)) && 
     208pure nothrow Num abs(Num)(Num x) 
     209if (is(typeof(Num.init >= 0)) && is(typeof(-Num.init)) && 
    209210        !(is(Num* : const(ifloat*)) || is(Num* : const(idouble*)) 
    210211                || is(Num* : const(ireal*)))) 
     
    28312832        ulong m = ((*xl) & 0x7FFF_FFFF_FFFF_FFFFL) + ((*yl) & 0x7FFF_FFFF_FFFF_FFFFL); 
    28322833 
    2833         ushort e = (xe[F.EXPPOS_SHORT] & F.EXPMASK) 
    2834                               + (ye[F.EXPPOS_SHORT] & F.EXPMASK); 
     2834        // @@@ BUG? @@@ 
     2835        // Cast shouldn't be here 
     2836        ushort e = cast(ushort) ((xe[F.EXPPOS_SHORT] & F.EXPMASK) 
     2837                + (ye[F.EXPPOS_SHORT] & F.EXPMASK)); 
    28352838        if (m & 0x8000_0000_0000_0000L) { 
    28362839            ++e;