Author: alanmc
Date: 2007-03-23 09:54:17 -0500 (Fri, 23 Mar 2007)
New Revision: 74876
Modified:
trunk/bitsharp/src/MonoTorrent.BEncoding/BEncodedDictionary.cs
Log:
Updated comparison
Modified: trunk/bitsharp/src/MonoTorrent.BEncoding/BEncodedDictionary.cs
===================================================================
--- trunk/bitsharp/src/MonoTorrent.BEncoding/BEncodedDictionary.cs
2007-03-23 14:52:29 UTC (rev 74875)
+++ trunk/bitsharp/src/MonoTorrent.BEncoding/BEncodedDictionary.cs
2007-03-23 14:54:17 UTC (rev 74876)
@@ -136,7 +136,7 @@
while ((reader.PeekChar() != -1) && ((char)reader.PeekChar()
!= 'e'))
{
key = (BEncodedString)BEncode.Decode(reader); ; //
keys have to be BEncoded strings
- if (oldkey != null && string.CompareOrdinal(oldkey.Text,
key.Text) > 0)
+ if (oldkey != null && oldkey.CompareTo(key) > 0)
throw new BEncodingException("Illegal
BEncodedDictionary. The attributes are not ordered correctly");
oldkey = key;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches