From b5a3494cc6f842542f88aa71a25af667ce9b6097 Mon Sep 17 00:00:00 2001 From: Pragyansh Chaturvedi Date: Fri, 7 Nov 2025 19:01:40 +0530 Subject: [PATCH] Fix typo in get_or_create_ptr_from_arg --- pythonbpf/helper/helper_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pythonbpf/helper/helper_utils.py b/pythonbpf/helper/helper_utils.py index d7019b8..0a92149 100644 --- a/pythonbpf/helper/helper_utils.py +++ b/pythonbpf/helper/helper_utils.py @@ -102,7 +102,7 @@ def get_or_create_ptr_from_arg( # Stack space is already allocated ptr = get_var_ptr_from_name(arg.id, local_sym_tab) elif isinstance(arg, ast.Constant) and isinstance(arg.value, int): - int_width = 64 # Deafult to i64 + int_width = 64 # Default to i64 if expected_type and isinstance(expected_type, ir.IntType): int_width = expected_type.width ptr = create_int_constant_ptr(arg.value, builder, local_sym_tab, int_width)