authorgravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2019-11-23 20:18:38+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-11-23 14:01:00-05:00
log7fa59565d31d4bd62e7c1250bb6c8aeda83429e6
tree08c0c0dafeae120720223466b7fcd70c72d9fadc
parentad0871ea4bf2dfbed07282ffe14738b5347d5d32

fix small regressions in std.event


2 files changed, 3 insertions(+), 3 deletions(-)

lib/std/event/future.zig+1-1
......@@ -26,7 +26,7 @@ pub fn Future(comptime T: type) type {
2626 pub fn init() Self {
2727 return Self{
2828 .lock = Lock.initLocked(),
29 .available = 0,
29 .available = .NotStarted,
3030 .data = undefined,
3131 };
3232 }
lib/std/event/group.zig+2-2
......@@ -67,10 +67,10 @@ pub fn Group(comptime ReturnType: type) type {
6767 .next = undefined,
6868 .data = Node{
6969 .handle = frame,
70 .bytes = @sliceToBytes((*[1]@Frame(func))(frame)[0..]),
70 .bytes = std.mem.asBytes(frame),
7171 },
7272 };
73 frame.* = async func(args);
73 _ = @asyncCall(frame, {}, func, args);
7474 self.alloc_stack.push(node);
7575 }
7676