diff --git a/src/ldpl_lib/ldpl_lib.cpp b/src/ldpl_lib/ldpl_lib.cpp index 6414b3a..4969fec 100644 --- a/src/ldpl_lib/ldpl_lib.cpp +++ b/src/ldpl_lib/ldpl_lib.cpp @@ -458,7 +458,7 @@ bool operator<(const chText &c1, const chText &c2) { else if (c1.buffer[i] > c2.buffer[i]) return false; } - return false; + return c1.buffer.size() < c2.buffer.size(); } bool operator>(const chText &c1, const chText &c2) { @@ -470,7 +470,7 @@ bool operator>(const chText &c1, const chText &c2) { else if (c1.buffer[i] < c2.buffer[i]) return false; } - return false; + return c1.buffer.size() > c2.buffer.size(); } bool operator!=(const chText &ch1, const chText &ch2) { @@ -904,4 +904,4 @@ ldpl_list utf8_split_list(chText haystack, chText needle) { result.inner_collection.push_back(charat(haystack, i)); } return result; -} \ No newline at end of file +}