aboutsummaryrefslogtreecommitdiffhomepage
path: root/csharp/src/Google.Protobuf/WellKnownTypes/Wrappers.cs
diff options
context:
space:
mode:
authorGravatar Jon Skeet <jonskeet@google.com>2017-10-25 16:04:45 +0100
committerGravatar Jon Skeet <skeet@pobox.com>2017-12-09 09:49:24 +0000
commit31c54d1289f2ae44158eff631526762366ba1707 (patch)
tree22375c89847cad789c63dd306c5ad50d04d511ab /csharp/src/Google.Protobuf/WellKnownTypes/Wrappers.cs
parent3e5bd2fd240a28d7a8bfab5447e664189e06434b (diff)
Regenerated code from previous C# codegen commit
With this in place, all tests should pass. Fixes #3725.
Diffstat (limited to 'csharp/src/Google.Protobuf/WellKnownTypes/Wrappers.cs')
-rw-r--r--csharp/src/Google.Protobuf/WellKnownTypes/Wrappers.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/csharp/src/Google.Protobuf/WellKnownTypes/Wrappers.cs b/csharp/src/Google.Protobuf/WellKnownTypes/Wrappers.cs
index 9a5fb81e..960cfdee 100644
--- a/csharp/src/Google.Protobuf/WellKnownTypes/Wrappers.cs
+++ b/csharp/src/Google.Protobuf/WellKnownTypes/Wrappers.cs
@@ -114,14 +114,14 @@ namespace Google.Protobuf.WellKnownTypes {
if (ReferenceEquals(other, this)) {
return true;
}
- if (Value != other.Value) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Value, other.Value)) return false;
return true;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
- if (Value != 0D) hash ^= Value.GetHashCode();
+ if (Value != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Value);
return hash;
}
@@ -239,14 +239,14 @@ namespace Google.Protobuf.WellKnownTypes {
if (ReferenceEquals(other, this)) {
return true;
}
- if (Value != other.Value) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Value, other.Value)) return false;
return true;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
- if (Value != 0F) hash ^= Value.GetHashCode();
+ if (Value != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Value);
return hash;
}