Skip to content

Commit

Permalink
fix logical bug
Browse files Browse the repository at this point in the history
  • Loading branch information
JotaroOfRivia committed May 14, 2024
1 parent a79a498 commit 246a10e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/property_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ void PropertyManager::createJetMethod(const ComponentPtr& propertyPublisher, con

}
// Function with one argument
else if(args.isNumeric() || args.isBool() || args.isString() && numberOfArgs == 1) {
else if((args.isNumeric() || args.isBool() || args.isString()) && numberOfArgs == 1) {
if(!hasCompatibleArgumentTypes(funcArgs[0].getType(), args))
return jetModuleExceptionToString(JetModuleException::JM_FUNCTION_INCOMPATIBLE_ARGUMENT_TYPES);

Expand Down

0 comments on commit 246a10e

Please sign in to comment.