Skip to content

Commit 4cfbb46

Browse files
committed
fix sbyte fails build
1 parent e143171 commit 4cfbb46

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/ros2cs/rosidl_generator_cs/rosidl_generator_cs/generate_cs_impl.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,12 @@ def get_marshal_type(type_):
108108
'float': 'float',
109109
'double': 'double',
110110
'long double': 'double',
111-
'char': 'char',
112-
'wchar': 'short',
111+
'char': 'byte',
112+
'wchar': 'char',
113113
'boolean': 'byte',
114114
'octet': 'byte',
115115
'uint8': 'byte',
116-
'int8': 'char',
116+
'int8': 'byte',
117117
'uint16': 'short',
118118
'int16': 'short',
119119
'uint32': 'int',
@@ -135,8 +135,8 @@ def get_marshal_array_type(type_):
135135
'float' : 'float',
136136
'double' : 'double',
137137
'long double': 'double',
138-
'char' : 'char',
139-
'wchar' : 'ushort',
138+
'char' : 'byte',
139+
'wchar' : 'char',
140140
'boolean' : 'bool',
141141
'octet' : 'byte',
142142
'uint8' : 'byte',

0 commit comments

Comments
 (0)