Commit 3d207c33 authored by Hao Nguyen's avatar Hao Nguyen

Fix TimestampPartial operator == overload implementation: Cannot call == inside…

Fix TimestampPartial operator == overload implementation: Cannot call == inside it, otherwise it would cause stack overflow
parent 24638088
......@@ -308,7 +308,7 @@ namespace Google.Protobuf.WellKnownTypes
/// <returns>true if the two timestamps refer to the same nanosecond</returns>
public static bool operator ==(Timestamp a, Timestamp b)
{
return ReferenceEquals(a, b) || (a == null ? (b == null ? true : false) : a.Equals(b));
return ReferenceEquals(a, b) || (ReferenceEquals(a, null) ? (ReferenceEquals(b, null) ? true : false) : a.Equals(b));
}
/// <summary>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment