From 6de8386582528583e1d09ab2cfe70d7f889300cd Mon Sep 17 00:00:00 2001 From: Amanda Potts Date: Wed, 18 Sep 2024 09:47:50 -0400 Subject: [PATCH] Fix minor variable with misleading name in PR #3772 --- src/registry/register_commands.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/registry/register_commands.py b/src/registry/register_commands.py index 103291bd2..e80b84013 100644 --- a/src/registry/register_commands.py +++ b/src/registry/register_commands.py @@ -440,12 +440,12 @@ def unpack_scalar_arg(arg_name, arg_type): return f"\tvar {arg_name} = {ARGS_FORMAL_NAME}['{arg_name}'].toScalar({arg_type});" -def unpack_scalar_arg_with_generic(arg_name, array_count): +def unpack_scalar_arg_with_generic(arg_name, scalar_count): """ Generate the code to unpack a scalar argument 'scalar_count' is used to generate unique names when - a procedure has multiple array-symbol formals + a procedure has multiple scalar-symbol formals Example: ``` @@ -455,7 +455,7 @@ def unpack_scalar_arg_with_generic(arg_name, array_count): Returns the chapel code, and the specifications for the 'dtype' and type-constructor arguments """ - dtype_arg_name = "scalar_dtype_" + str(array_count) + dtype_arg_name = "scalar_dtype_" + str(scalar_count) return ( unpack_scalar_arg(arg_name, dtype_arg_name), [(dtype_arg_name, "type", None, None)],