projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60cbfe8
)
python/lib/gen_code.py: compare to value in param_init
author
Paul Brossier
<piem@piem.org>
Sat, 17 Sep 2016 01:18:39 +0000
(
03:18
+0200)
committer
Paul Brossier
<piem@piem.org>
Sat, 17 Sep 2016 01:18:39 +0000
(
03:18
+0200)
python/lib/gen_code.py
patch
|
blob
|
history
diff --git
a/python/lib/gen_code.py
b/python/lib/gen_code.py
index
73826c1
..
2042fa6
100644
(file)
--- a/
python/lib/gen_code.py
+++ b/
python/lib/gen_code.py
@@
-298,8
+298,7
@@
Py_{shortname}_new (PyTypeObject * pytype, PyObject * args, PyObject * kwds)
name = p['name']
return """
self->{name} = {defval};
- // nothing to do?
- if ({name} != {defval}) {{
+ if ({name} != 0.) {{
self->{name} = {name};
}}
""".format(defval = aubiodefvalue[name], name = name)