Eolian: Use original type in param replacement conversion
This commit is contained in:
parent
dfb0a7f078
commit
0a3671579a
|
@ -258,9 +258,9 @@ class Method(object):
|
||||||
gen.write(conv.format(n, t))
|
gen.write(conv.format(n, t))
|
||||||
|
|
||||||
for i, (t, n) in enumerate(self.c_params):
|
for i, (t, n) in enumerate(self.c_params):
|
||||||
t = t.replace("const ", "")
|
t2 = t.replace("const ", "")
|
||||||
if t in param_type_mapping:
|
if t2 in param_type_mapping:
|
||||||
conv = param_type_mapping[t][2]
|
conv = param_type_mapping[t2][2]
|
||||||
if conv:
|
if conv:
|
||||||
self.c_params[i] = (t, conv.format(n, t))
|
self.c_params[i] = (t, conv.format(n, t))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue