Showing with 4 additions and 2 deletions.
  1. +4 −1 src/expression.d
  2. +0 −1 src/tokens.d
5 changes: 4 additions & 1 deletion src/expression.d
Original file line number Diff line number Diff line change
Expand Up @@ -4376,6 +4376,7 @@ public:
return s1[u] - s2[u];
}
}
break;
case 4:
{
dchar* s1 = cast(dchar*)string;
Expand Down Expand Up @@ -7235,7 +7236,9 @@ public:
// T opAssign floating yields a floating. Prevent truncating conversions (float to int).
// See issue 3841.
// Should we also prevent double to float (type->isfloating() && type->size() < t2 ->size()) ?
if (op == TOKmulass || op == TOKdivass || op == TOKmodass || TOKaddass || op == TOKminass || op == TOKpowass)
if (op == TOKaddass || op == TOKminass ||
op == TOKmulass || op == TOKdivass || op == TOKmodass ||
op == TOKpowass)
{
if ((type.isintegral() && t2.isfloating()))
{
Expand Down
1 change: 0 additions & 1 deletion src/tokens.d
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,6 @@ extern (C++) struct Token
Token.tochars[TOKcall] = "call";
Token.tochars[TOKidentity] = "is";
Token.tochars[TOKnotidentity] = "!is";
Token.tochars[TOKorass] = "|=";
Token.tochars[TOKidentifier] = "identifier";
Token.tochars[TOKat] = "@";
Token.tochars[TOKpow] = "^^";
Expand Down