Skip to content
Snippets Groups Projects
Commit ab6511e6 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Sanity check for scalar argument count.

parent 653fca66
No related branches found
No related tags found
No related merge requests found
......@@ -224,6 +224,10 @@ def _add_functionality():
self.set_arg(i, arg)
else:
from struct import pack
if len(args) != len(arg_type_chars):
raise ValueError("length of argument type array and "
"length of argument list do not agree")
for i, (arg, arg_type_char) in enumerate(
zip(args, arg_type_chars)):
if arg_type_char:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment