Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 338573c

Browse files
committed
[[ Foundation ]] Ensure ParseOffset respects integer_only
This patch ensures that MCNumberParseOffset respects the integer_only flag when the string is unicode.
1 parent 86aa7dc commit 338573c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libfoundation/src/foundation-number.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ static bool __MCNumberParseOffset(MCStringRef p_string, uindex_t offset, uindex_
283283
char_count = length - offset;
284284

285285
if (!MCStringIsNative(p_string))
286-
return MCNumberParseUnicodeChars(MCStringGetCharPtr(p_string) + offset, char_count, r_number);
286+
return __MCNumberParseUnicodeChars(MCStringGetCharPtr(p_string) + offset, char_count, p_integer_only, r_number);
287287

288288
bool t_success;
289289
t_success = false;

0 commit comments

Comments
 (0)