Eolian: Use original type in param replacement conversion

This commit is contained in:
Kai Huuhko 2014-06-19 13:00:00 +03:00
parent dfb0a7f078
commit 0a3671579a
1 changed files with 3 additions and 3 deletions

View File

@ -258,9 +258,9 @@ class Method(object):
gen.write(conv.format(n, t))
for i, (t, n) in enumerate(self.c_params):
t = t.replace("const ", "")
if t in param_type_mapping:
conv = param_type_mapping[t][2]
t2 = t.replace("const ", "")
if t2 in param_type_mapping:
conv = param_type_mapping[t2][2]
if conv:
self.c_params[i] = (t, conv.format(n, t))