Update dmd to 2.078.0
This commit is contained in:
@ -264,7 +264,8 @@ if (is(Unqual!E == char))
|
||||
body
|
||||
{
|
||||
dchar chr;
|
||||
ubyte units, mask;
|
||||
ubyte units;
|
||||
int mask;
|
||||
const(char)* it = this.begin;
|
||||
|
||||
if (*it & 0x80)
|
||||
|
@ -393,7 +393,9 @@ struct Integer
|
||||
T opCast(T)() const
|
||||
if (isIntegral!T && isSigned!T)
|
||||
{
|
||||
return this.sign ? -(cast(Unsigned!T) this) : cast(Unsigned!T) this;
|
||||
return this.sign
|
||||
? cast(T) -(cast(Promoted!(Unsigned!T)) (cast(Unsigned!T) this))
|
||||
: cast(Unsigned!T) this;
|
||||
}
|
||||
|
||||
///
|
||||
@ -1072,7 +1074,7 @@ struct Integer
|
||||
assert(h1 == 79);
|
||||
|
||||
h2 = ~h1;
|
||||
assert(h2 == ~cast(ubyte) 79);
|
||||
assert(h2 == cast(ubyte) ~79);
|
||||
}
|
||||
|
||||
/// ditto
|
||||
|
Reference in New Issue
Block a user