Skip to content

Commit

Permalink
api: fix the < operator of the Str class
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Jan 24, 2024
1 parent 6b42c50 commit e44eefb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/str.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ namespace jule
jule::Slice<jule::I32> strr = str.operator jule::Slice<jule::I32>();
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();
}
Expand Down

0 comments on commit e44eefb

Please sign in to comment.