Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Bug Fix for 8 fractional digit checking on TimeSpan.Parse(string) #21077

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public bool IsInvalidFraction()
return false;

// num > 0 && zeroes > 0 && num <= maxValue && zeroes <= maxPrecision
return _num >= MaxFraction / Pow10(_zeroes - 1);
return _num >= MaxFraction / Pow10(_zeroes);
}
}

Expand Down