don't cast integral long double to ptrdiff_t before writing to xml, fixes #188

This commit is contained in:
Thomas Fussell 2017-07-16 11:16:09 -07:00
parent 33399a5390
commit b98f8c4fe7

View File

@ -2332,7 +2332,7 @@ void xlsx_producer::write_worksheet(const relationship &rel)
if (is_integral(cell.value<long double>()))
{
write_characters(static_cast<std::ptrdiff_t>(cell.value<long double>()));
write_characters(static_cast<std::int64_t>(cell.value<long double>()));
}
else
{