We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be7393c commit 657734bCopy full SHA for 657734b
1 file changed
vlib/v/gen/c/infix.v
@@ -1340,7 +1340,7 @@ fn (mut g Gen) infix_expr_left_shift_op(node ast.InfixExpr) {
1340
resolved_right_type = g.unwrap_generic(right_type)
1341
}
1342
needs_explicit_deref := node.right is ast.Ident && resolved_right_type.is_ptr()
1343
- && !elem_type.is_ptr()
+ && !elem_type.is_ptr() && !elem_type.is_pointer()
1344
rhs_is_any_value := elem_sym.kind == .any
1345
mut rhs_is_interface_value := elem_sym.kind == .interface
1346
&& g.table.does_type_implement_interface(resolved_right_type, elem_type)
0 commit comments