From e44eefbebe69b9ad39411efdf6608f6ec32c189a Mon Sep 17 00:00:00 2001 From: mertcandav Date: Wed, 24 Jan 2024 20:40:31 +0300 Subject: [PATCH] api: fix the < operator of the Str class --- api/str.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/str.hpp b/api/str.hpp index e7687ab8e..590df040e 100644 --- a/api/str.hpp +++ b/api/str.hpp @@ -256,7 +256,7 @@ namespace jule jule::Slice strr = str.operator jule::Slice(); jule::Int n = thisr.len() > strr.len() ? strr.len() : thisr.len(); for (jule::Int i = 0; i < n; ++i) - if (thisr.__at(i) > strr.__at(i)) + if (thisr.__at(i) != strr.__at(i)) return thisr.__at(i) < strr.__at(i); return thisr.len() < strr.len(); }