Skip to content

Commit

Permalink
fixed switch fall through
Browse files Browse the repository at this point in the history
  • Loading branch information
lausdahl committed Jun 16, 2020
1 parent 82eca52 commit b095875
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions rabbitmq-core/src/FmuContainerCore.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,17 @@ union ScalarVariableBaseValue {
friend ostream &operator<<(ostream &os, const ScalarVariableBaseValue &c) {
switch (c.i.type) {
case TU_INT:
os << c.i.i;
os<<"I" << (int)(c.i.i);
break;
case TU_BOOL:
os << c.b.b;
os <<"B"<< (bool)(c.b.b);
break;
case TU_DOUBLE:
os << c.d.d;
os<<"D" << (double)(c.d.d);
break;
case TU_STRING:
os << c.s.s;
os<<"S" << c.s.s;
break;
}
return os;
}
Expand Down

0 comments on commit b095875

Please sign in to comment.