aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2023-02-22 20:44:30 +0100
committerTristan Gingold <tgingold@free.fr>2023-02-22 20:44:30 +0100
commitcebbab84557c7779e6f453337e0a2e2abbacd456 (patch)
tree7fec1832eec990012932d81084492faff91ce700 /pyGHDL
parent5ef6fa41c3681dfbcbf8b7a0fb1fc9a6a7d98ce3 (diff)
downloadghdl-cebbab84557c7779e6f453337e0a2e2abbacd456.tar.gz
ghdl-cebbab84557c7779e6f453337e0a2e2abbacd456.tar.bz2
ghdl-cebbab84557c7779e6f453337e0a2e2abbacd456.zip
pyGHDL/libghdl: fix typo for argtypes.
Fix ghdl/ghdl-language-server#151
Diffstat (limited to 'pyGHDL')
-rw-r--r--pyGHDL/libghdl/_decorator.py2
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):