aboutsummaryrefslogtreecommitdiff
path: root/lib/std/event
diff options
context:
space:
mode:
authorVexu <15308111+Vexu@users.noreply.github.com>2019-11-23 22:56:05 +0200
committerVexu <15308111+Vexu@users.noreply.github.com>2019-11-23 22:57:34 +0200
commitb9ef36094c9ffc522def982c98abcb97cd067761 (patch)
tree1e3a1265c7ce8e21f7b2f91213cf3f72e3ff4faa /lib/std/event
parent6c64f079fa4a80949e0721e112a77a771239752d (diff)
downloadzig-b9ef36094c9ffc522def982c98abcb97cd067761.tar.gz
zig-b9ef36094c9ffc522def982c98abcb97cd067761.zip
re-enable stage2 tests
Diffstat (limited to 'lib/std/event')
-rw-r--r--lib/std/event/group.zig5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/std/event/group.zig b/lib/std/event/group.zig
index 77dd2cd1aa..0f6a892594 100644
--- a/lib/std/event/group.zig
+++ b/lib/std/event/group.zig
@@ -66,11 +66,10 @@ pub fn Group(comptime ReturnType: type) type {
node.* = AllocStack.Node{
.next = undefined,
.data = Node{
- .handle = frame,
- .bytes = @sliceToBytes((*[1]@Frame(func))(frame)[0..]),
+ .handle = @asyncCall(frame, {}, func, args),
+ .bytes = std.mem.asBytes(frame),
},
};
- frame.* = async func(args);
self.alloc_stack.push(node);
}