mirror of
https://github.com/janet-lang/janet
synced 2024-11-24 17:27:18 +00:00
Update min fiber size.
This commit is contained in:
parent
e5d2752329
commit
2c94aa1a6a
@ -28,8 +28,8 @@
|
|||||||
static JanetFiber *make_fiber(int32_t capacity) {
|
static JanetFiber *make_fiber(int32_t capacity) {
|
||||||
Janet *data;
|
Janet *data;
|
||||||
JanetFiber *fiber = janet_gcalloc(JANET_MEMORY_FIBER, sizeof(JanetFiber));
|
JanetFiber *fiber = janet_gcalloc(JANET_MEMORY_FIBER, sizeof(JanetFiber));
|
||||||
if (capacity < 16) {
|
if (capacity < 32) {
|
||||||
capacity = 16;
|
capacity = 32;
|
||||||
}
|
}
|
||||||
fiber->capacity = capacity;
|
fiber->capacity = capacity;
|
||||||
data = malloc(sizeof(Janet) * capacity);
|
data = malloc(sizeof(Janet) * capacity);
|
||||||
|
Loading…
Reference in New Issue
Block a user