aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPinieP <59698589+PinieP@users.noreply.github.com>2026-03-07 22:01:03 +0100
committerGitHub <noreply@github.com>2026-03-07 15:01:03 -0600
commitdecd7078af107eb1ba808c71b0d3c41f8267608f (patch)
tree1bb1eb24d11b9f0ac1c87f58452e9f31fc5a28c0
parentAlign items in multiline pretty format (%m and %p) (#1721) (diff)
fix janet_make_threaded to return threaded channel (#1724)
janet_make_threaded previously created a channel with threaded set to 0
-rw-r--r--src/core/ev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ev.c b/src/core/ev.c
index 6c71a4f2..b7077ffb 100644
--- a/src/core/ev.c
+++ b/src/core/ev.c
@@ -1172,7 +1172,7 @@ JanetChannel *janet_channel_make(uint32_t limit) {
JanetChannel *janet_channel_make_threaded(uint32_t limit) {
janet_assert(limit <= INT32_MAX, "bad limit");
JanetChannel *channel = janet_abstract_threaded(&janet_channel_type, sizeof(JanetChannel));
- janet_chan_init(channel, (int32_t) limit, 0);
+ janet_chan_init(channel, (int32_t) limit, 1);
return channel;
}