summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEisuke Kawashima <e-kwsm@users.noreply.github.com>2021-10-15 22:55:26 +0900
committerGitHub <noreply@github.com>2021-10-15 06:55:26 -0700
commit05dc0cfda95ea6ff0eb909254ddaaa869655edba (patch)
tree78b1b9556b0c66c9595571eab68ae2b74d87854d
parent967840543f1f20754dd1579083e8a8271ab6cb62 (diff)
downloadpycparser-05dc0cfda95ea6ff0eb909254ddaaa869655edba.tar.gz
Fix examples/func_defs_add_param.py: add missing `align` parameter (#441)
-rw-r--r--examples/func_defs_add_param.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/func_defs_add_param.py b/examples/func_defs_add_param.py
index 11cb635..9eb35c9 100644
--- a/examples/func_defs_add_param.py
+++ b/examples/func_defs_add_param.py
@@ -24,6 +24,7 @@ class ParamAdder(c_ast.NodeVisitor):
def visit_FuncDecl(self, node):
ty = c_ast.TypeDecl(declname='_hidden',
quals=[],
+ align=[],
type=c_ast.IdentifierType(['int']))
newdecl = c_ast.Decl(
name='_hidden',