mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
don't cast integral long double to ptrdiff_t before writing to xml, fixes #188
This commit is contained in:
parent
33399a5390
commit
b98f8c4fe7
|
@ -2332,7 +2332,7 @@ void xlsx_producer::write_worksheet(const relationship &rel)
|
||||||
|
|
||||||
if (is_integral(cell.value<long double>()))
|
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
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user