mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2026-02-12 16:10:59 +00:00
Change ScratchPoolManager to use typed scratch space
This commit is contained in:
@ -50,7 +50,7 @@ class HelperHandlerRegistry:
|
||||
def get_param_type(cls, helper_name, index):
|
||||
"""Get the type of a parameter of a helper function by the index"""
|
||||
signature = cls.get_signature(helper_name)
|
||||
if signature and 0 <= index < len(signature.arg_types):
|
||||
if signature and signature.arg_types and 0 <= index < len(signature.arg_types):
|
||||
return signature.arg_types[index]
|
||||
return None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user