Skip to content

Commit 5f3a4bf

Browse files
Merge pull request #111 from RamseyTI/ramsey-fix
Mismatch between C++ and Python for callback index type
2 parents 43d09e6 + bcedf82 commit 5f3a4bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

erpcgen/src/templates/py_coders.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ codec.start_write_union({$self}discriminator)
8080
{#--------------- function ---------------#}
8181
{% elif info.type == "function" %}
8282
{% if info.tableName != "" %}
83-
{$codec}.write_int32({$ info.tableName}.index({$name})){%>%}
83+
{$codec}.write_int8({$ info.tableName}.index({$name})){%>%}
8484
{% else %}
8585
# When are defined less than 2 callback functions, eRPC don't need serialize any code.
8686
{% endif%}
@@ -171,7 +171,7 @@ _n{$depth} = {$codec}.start_read_list()
171171
{#--------------- function ---------------#}
172172
{% elif info.type == "function" %}
173173
{% if info.tableName != "" %}
174-
{$name} = {$ info.tableName}[{$codec}.read_int32()]
174+
{$name} = {$ info.tableName}[{$codec}.read_int8()]
175175
{% else %}
176176
# When are defined less than 2 callback functions, eRPC don't need serialize any code.
177177
{$indent}{$name} = {$info.callbackName}

0 commit comments

Comments
 (0)