-
Notifications
You must be signed in to change notification settings - Fork 379
Closed
Labels
resolvedThis issue has been resolved.This issue has been resolved.
Description
I have a cell with 5000 in it and I'm reading it into a double when I get a bad variant exception from std::get(5000). Fix seems to be to change the stanza in XLCellValue.cpp at line 244 to look like this (add the Integer line):
if constexpr (std::is_floating_point_v<T>) {
if (m_type == XLValueType::Error) return std::nan("1");
if (m_type == XLValueType::Integer) return static_cast<T>(std::get<int64_t>(m_value));
return static_cast<T>(std::get<double>(m_value));
}
SimantoR, fauder, insanedps and sergioferrari
Metadata
Metadata
Assignees
Labels
resolvedThis issue has been resolved.This issue has been resolved.