Skip to content

Commit f323a80

Browse files
committed
[[ Foundation ]] Use more efficient call to ranged string function
1 parent e3fa18f commit f323a80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libfoundation/src/foundation-string.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2973,7 +2973,7 @@ MC_DLLEXPORT_DEF
29732973
bool MCStringIsEqualToNativeChars(MCStringRef self, const char_t *p_chars, uindex_t p_char_count, MCStringOptions p_options)
29742974
{
29752975
return MCStringSubstringIsEqualToNativeChars(self,
2976-
MCRangeMake(0, MCStringGetLength(self)),
2976+
MCRangeMake(0, UINDEX_MAX),
29772977
p_chars,
29782978
p_char_count,
29792979
p_options);

0 commit comments

Comments
 (0)