Shouldnt touch Google.Protobuf stuff.

This commit is contained in:
hondacrx
2017-11-05 16:32:45 -05:00
parent 0df2703eab
commit f6d034b7e5
+1 -1
View File
@@ -884,7 +884,7 @@ 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))