File tree 4 files changed +10
-12
lines changed
4 files changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -1154,10 +1154,10 @@ void value_sett::assign(
1154
1154
}
1155
1155
else
1156
1156
{
1157
- if (rhs.type () != type)
1157
+ if (rhs.type () != lhs. type () )
1158
1158
throw " value_sett::assign type mismatch: "
1159
1159
" rhs.type():\n " +rhs.type ().pretty ()+" \n " +
1160
- " type:\n " +type.pretty ();
1160
+ " lhs. type() :\n " +lhs. type () .pretty ();
1161
1161
1162
1162
rhs_member=make_member (rhs, name, ns);
1163
1163
Original file line number Diff line number Diff line change @@ -989,10 +989,10 @@ void value_set_fit::assign(
989
989
}
990
990
else
991
991
{
992
- if (rhs.type () != type)
992
+ if (rhs.type () != lhs. type () )
993
993
throw " value_set_fit::assign type mismatch: "
994
994
" rhs.type():\n " +rhs.type ().pretty ()+" \n " +
995
- " type:\n " +type.pretty ();
995
+ " type:\n " +lhs. type () .pretty ();
996
996
997
997
if (rhs.id ()==ID_struct ||
998
998
rhs.id ()==ID_constant)
Original file line number Diff line number Diff line change @@ -1104,10 +1104,9 @@ void value_set_fivrt::assign(
1104
1104
}
1105
1105
else
1106
1106
{
1107
- if (rhs.type () != type)
1108
- throw
1109
- " type mismatch:\n RHS: " +rhs.type ().pretty ()+" \n " +
1110
- " LHS: " +type.pretty ();
1107
+ if (rhs.type () != lhs.type ())
1108
+ throw " type mismatch:\n RHS: " + rhs.type ().pretty () + " \n " +
1109
+ " LHS: " + lhs.type ().pretty ();
1111
1110
1112
1111
if (rhs.id ()==ID_struct ||
1113
1112
rhs.id ()==ID_constant)
Original file line number Diff line number Diff line change @@ -797,10 +797,9 @@ void value_set_fivrnst::assign(
797
797
}
798
798
else
799
799
{
800
- if (rhs.type () != type)
801
- throw
802
- " type mismatch:\n RHS: " +rhs.type ().pretty ()+" \n " +
803
- " LHS: " +type.pretty ();
800
+ if (rhs.type () != lhs.type ())
801
+ throw " type mismatch:\n RHS: " + rhs.type ().pretty () + " \n " +
802
+ " LHS: " + lhs.type ().pretty ();
804
803
805
804
if (rhs.id ()==ID_struct ||
806
805
rhs.id ()==ID_constant)
You can’t perform that action at this time.
0 commit comments