Shouldnt touch Google.Protobuf stuff.
This commit is contained in:
@@ -884,8 +884,8 @@ namespace Google.Protobuf
|
|||||||
if (subseconds != "")
|
if (subseconds != "")
|
||||||
{
|
{
|
||||||
// This should always work, as we've got 1-9 digits.
|
// This should always work, as we've got 1-9 digits.
|
||||||
if (int.TryParse(subseconds.Substring(1), out int parsedFraction))
|
int parsedFraction = int.Parse(subseconds.Substring(1));
|
||||||
nanos = parsedFraction * SubsecondScalingFactors[subseconds.Length] * multiplier;
|
nanos = parsedFraction * SubsecondScalingFactors[subseconds.Length] * multiplier;
|
||||||
}
|
}
|
||||||
if (!Duration.IsNormalized(seconds, nanos))
|
if (!Duration.IsNormalized(seconds, nanos))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user