diff options
Diffstat (limited to 'pyGHDL/libghdl/_decorator.py')
-rw-r--r-- | pyGHDL/libghdl/_decorator.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyGHDL/libghdl/_decorator.py b/pyGHDL/libghdl/_decorator.py index 663c90eae..42b546f1d 100644 --- a/pyGHDL/libghdl/_decorator.py +++ b/pyGHDL/libghdl/_decorator.py @@ -159,7 +159,7 @@ def BindToLibGHDL(subprogramName): raise TypeError(f"Unsupported return type '{returnType!s}' in function '{func.__name__}'.") functionPointer = getattr(libghdl, subprogramName) - functionPointer.parameterTypes = parameterTypes + functionPointer.argtypes = parameterTypes functionPointer.restype = resultType if isinstance(returnType, type) and issubclass(returnType, IntEnum): |