Skip to content

Commit

Permalink
Fix long double initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
sonndinh committed Dec 21, 2023
1 parent 2d37e5d commit 1cdac1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dds/DCPS/XTypes/DynamicDataImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6133,7 +6133,8 @@ void vwrite_item(ValueWriter& vw, DDS::DynamicData_ptr value,
break;
}
case TK_FLOAT128: {
CORBA::LongDouble val = 0.0l;
CORBA::LongDouble val;
ACE_CDR_LONG_DOUBLE_ASSIGNMENT(val, 0.0l);
rc = value->get_float128_value(val, id);
if (!check_rc(rc, id, tk, "vwrite_item")) {
return;
Expand Down

0 comments on commit 1cdac1d

Please sign in to comment.