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 92c7350 commit cb1b3a4Copy full SHA for cb1b3a4
src/codegen/c.zig
@@ -5855,7 +5855,7 @@ fn airIntFromPtr(f: *Function, inst: Air.Inst.Index) !CValue {
5855
try f.renderType(writer, inst_ty);
5856
try writer.writeByte(')');
5857
if (operand_ty.isSlice(mod)) {
5858
- try f.writeCValueMember(writer, operand, .{ .identifier = "len" });
+ try f.writeCValueMember(writer, operand, .{ .identifier = "ptr" });
5859
} else {
5860
try f.writeCValue(writer, operand, .Other);
5861
}
0 commit comments