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

Commit 5c942b0

Browse files
author
runrevali
committed
[[ StdMlc ]] Fix type in char module
1 parent 295bc98 commit 5c942b0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libscript/src/module-char.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ extern "C" MC_DLLEXPORT void MCCharEvalNumberOfCharsIn(MCStringRef p_target, ind
2626
extern "C" MC_DLLEXPORT void MCCharEvalIsAmongTheCharsOf(MCStringRef p_needle, MCStringRef p_target, bool& r_output)
2727
{
2828
// Error if there is more than one char in needle.
29-
if (MCStringGetLength(p_needle) == 1)
29+
if (MCStringGetLength(p_needle) != 1)
3030
{
3131
MCErrorCreateAndThrow(kMCGenericErrorTypeInfo, "reason", MCSTR("needle must be a single char"), nil);
3232
return;

0 commit comments

Comments
 (0)