Skip to content

Commit 0908600

Browse files
committed
fixed typo and add comment
1 parent 5fa5e1f commit 0908600

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

fastmath.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,8 @@ def check_call_stack_fastmath(pkg_dir, pkg_name):
445445
-------
446446
None
447447
"""
448-
inconsitent_call_stacks = []
448+
# List of call stacks with inconsistent fastmath flags
449+
inconsistent_call_stacks = []
449450

450451
njit_call_stacks = get_njit_call_stacks(pkg_dir, pkg_name)
451452
for cs in njit_call_stacks:
@@ -462,13 +463,13 @@ def check_call_stack_fastmath(pkg_dir, pkg_name):
462463
func = getattr(module, func_name)
463464
flag = func.targetoptions["fastmath"]
464465
if flag != flag_ref:
465-
inconsitent_call_stacks.append(cs)
466+
inconsistent_call_stacks.append(cs)
466467
break
467468

468-
if len(inconsitent_call_stacks) > 0:
469+
if len(inconsistent_call_stacks) > 0:
469470
msg = (
470-
"Found at least one callstack that have inconsistent `fastmath` flags. "
471-
+ f"Those call stacks are:\n {inconsitent_call_stacks}\n"
471+
"Found at least one call stack that has inconsistent `fastmath` flags. "
472+
+ f"Those call stacks are:\n {inconsistent_call_stacks}\n"
472473
)
473474
raise ValueError(msg)
474475

0 commit comments

Comments
 (0)