diff --git a/websocket-sharp/Net/CookieCollection.cs b/websocket-sharp/Net/CookieCollection.cs index 2fa6a61e..2acfb7fd 100644 --- a/websocket-sharp/Net/CookieCollection.cs +++ b/websocket-sharp/Net/CookieCollection.cs @@ -233,7 +233,8 @@ namespace WebSocketSharp.Net private static int compareCookieWithinSort (Cookie x, Cookie y) { - return (x.Name.Length + x.Value.Length) - (y.Name.Length + y.Value.Length); + return (x.Name.Length + x.Value.Length) + - (y.Name.Length + y.Value.Length); } private static int compareCookieWithinSorted (Cookie x, Cookie y)