Skip to content

Commit

Permalink
formating
Browse files Browse the repository at this point in the history
  • Loading branch information
DerThorsten committed Dec 16, 2024
1 parent 8656fa8 commit 09ce390
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/sparrow/layout/decimal_array.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,12 @@ namespace sparrow
ss << format_str;
char c;
ss >> m_precision >> c >> m_scale;

// check for failure
if (ss.fail())
{
throw std::runtime_error("Invalid format string for decimal array");
}
}

template <class T>
Expand Down

0 comments on commit 09ce390

Please sign in to comment.