Skip to content
4 changes: 3 additions & 1 deletion cpp/evalio/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ struct Stamp {
// extract & pad nsec
std::string nsec_str = sec_str.substr(dot_pos + 1);
if (nsec_str.size() > 9) {
throw std::runtime_error("Too many digits in fractional part of sec.");
// If too many digits, that represents a fraction of a nanosecond
// so we just truncate to 9 digits
nsec_str = nsec_str.substr(0, 9);
} else if (nsec_str.size() < 9) {
nsec_str += std::string(9 - nsec_str.size(), '0');
}
Expand Down
2 changes: 1 addition & 1 deletion cpp/setup_pipelines.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,6 @@ if [ ! -d ".vcpkg/" ]; then
git clone https://github.com/microsoft/vcpkg.git .vcpkg/
fi
cd .vcpkg
git switch --detach 2025.08.27
git switch --detach 2026.07.29
cd ..
./.vcpkg/bootstrap-vcpkg.sh
Loading