Browse Source

Fix string_compare

gingerBill 5 years ago
parent
commit
fea8c63ab3
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/string.cpp

+ 1 - 0
src/string.cpp

@@ -164,6 +164,7 @@ int string_compare(String const &x, String const &y) {
 				return cast(int)x[offset] - cast(int)y[offset];
 			}
 		}
+		return cast(int)(x.len - y.len);
 	}
 	return 0;
 }