From cebbab84557c7779e6f453337e0a2e2abbacd456 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Wed, 22 Feb 2023 20:44:30 +0100 Subject: pyGHDL/libghdl: fix typo for argtypes. Fix ghdl/ghdl-language-server#151 --- pyGHDL/libghdl/_decorator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- cgit v1.2.3