Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Ticket #949: tango-ieee-warnings.patch

File tango-ieee-warnings.patch, 0.8 kB (added by afb, 9 months ago)
  • tango/math/IEEE.d

    old new  
    570570        ve[F.EXPPOS_SHORT] = sgn; 
    571571    } 
    572572  }else { //static if(real.mant_dig==106) // doubledouble 
    573         assert(0, "Unsupported"); 
     573        debug assert(0, "Unsupported"); 
    574574  } 
    575575    return value; 
    576576} 
     
    681681            return y; 
    682682        } else static if (real.mant_dig==64) { // 80-bit reals 
    683683            alias floatTraits!(real) F; 
    684             short e = (cast(short *)&x)[F.EXPPOS_SHORT] & F.EXPMASK; 
     684            short e = cast(short) (cast(short *)&x)[F.EXPPOS_SHORT] & F.EXPMASK; 
    685685            if (e == F.EXPMASK) { 
    686686                // BUG: should also set the invalid exception 
    687687                ulong s = *cast(ulong *)&x;