# HG changeset patch # User Frank Benoit # Date 1212930728 -7200 # Node ID ec7da638647fd473c29d9b2cab39556a01b3f4d1 # Parent 116b04c0d8c923781246d3a7d884f83c922067bc Fix string compare in dwthelper/utils.d diff -r 116b04c0d8c9 -r ec7da638647f dwt/dwthelper/utils.d --- a/dwt/dwthelper/utils.d Mon Jun 02 21:55:56 2008 +0200 +++ b/dwt/dwthelper/utils.d Sun Jun 08 15:12:08 2008 +0200 @@ -591,10 +591,10 @@ } public int compareToIgnoreCase( String src, String other ){ - return tango.text.Unicode.toFold(src) < tango.text.Unicode.toFold(other); + return compareTo( tango.text.Unicode.toFold(src), tango.text.Unicode.toFold(other)); } public int compareTo( String src, String other ){ - return src < other; + return typeid(String).compare( cast(void*)&src, cast(void*)&other ); } public bool startsWith( String src, String pattern ){