Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Unified Diff: third_party/protobuf/csharp/src/Google.Protobuf/ByteString.cs

Issue 2600753002: Reverts third_party/protobuf: Update to HEAD (f52e188fe4) (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/protobuf/csharp/src/Google.Protobuf/ByteString.cs
diff --git a/third_party/protobuf/csharp/src/Google.Protobuf/ByteString.cs b/third_party/protobuf/csharp/src/Google.Protobuf/ByteString.cs
index e1006f10194d03490e70fcb1977b8392911e7040..11ad6216dd36d4d7f4381aba1c54756a0d177e91 100644
--- a/third_party/protobuf/csharp/src/Google.Protobuf/ByteString.cs
+++ b/third_party/protobuf/csharp/src/Google.Protobuf/ByteString.cs
@@ -303,7 +303,7 @@ namespace Google.Protobuf
int ret = 23;
foreach (byte b in bytes)
{
- ret = (ret * 31) + b;
+ ret = (ret << 8) | b;
}
return ret;
}

Powered by Google App Engine
This is Rietveld 408576698