Skip to content

Commit

Permalink
Update min fiber size.
Browse files Browse the repository at this point in the history
  • Loading branch information
bakpakin committed Dec 24, 2018
1 parent e5d2752 commit 2c94aa1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/fiber.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
static JanetFiber *make_fiber(int32_t capacity) {
Janet *data;
JanetFiber *fiber = janet_gcalloc(JANET_MEMORY_FIBER, sizeof(JanetFiber));
if (capacity < 16) {
capacity = 16;
if (capacity < 32) {
capacity = 32;
}
fiber->capacity = capacity;
data = malloc(sizeof(Janet) * capacity);
Expand Down

0 comments on commit 2c94aa1

Please sign in to comment.