File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -673,6 +673,9 @@ fn convert_type(typ_ string) Type {
673
673
'uint8_t' {
674
674
'u8'
675
675
}
676
+ 'int8_t' {
677
+ 'u8'
678
+ }
676
679
'__int64_t' {
677
680
'i64'
678
681
}
@@ -710,6 +713,9 @@ fn convert_type(typ_ string) Type {
710
713
'intptr_t' {
711
714
'C.intptr_t'
712
715
}
716
+ 'uintptr_t' {
717
+ 'C.uintptr_t'
718
+ }
713
719
'void' {
714
720
'void'
715
721
}
@@ -924,7 +930,7 @@ fn (mut c C2V) goto_stmt(node &Node) {
924
930
if label == '' {
925
931
label = '_GOTO_PLACEHOLDER_' + node.label_id
926
932
}
927
- c.genln ('goto ${label} // id: ${node.label_id} ' )
933
+ c.genln ('unsafe { goto ${label} } // id: ${node.label_id} ' )
928
934
}
929
935
930
936
fn (mut c C2V) return_st (mut node Node) {
@@ -1776,7 +1782,8 @@ fn (mut c C2V) expr(_node &Node) string {
1776
1782
println (add_place_data_to_error (err))
1777
1783
bad_node
1778
1784
}
1779
- if expr.kindof (.decl_ref_expr) || expr.kindof (.unary_operator) {
1785
+
1786
+ if ! expr.kindof (.paren_expr) {
1780
1787
c.gen ('(' )
1781
1788
defer {
1782
1789
c.gen (')' )
You can’t perform that action at this time.
0 commit comments