diff options
author | Ori Bernstein <ori@eigenstate.org> | 2022-05-07 17:01:46 +0000 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2022-05-07 17:01:46 +0000 |
commit | b3526b5e8cc2f28b17096115524731afc254e02b (patch) | |
tree | c4b4fb449df7f68e3599d0f33519ae499beb2539 | |
parent | fbd0a767de45e5c5d9dfe6dc4a86c95a328bd22b (diff) | |
download | mc-b3526b5e8cc2f28b17096115524731afc254e02b.tar.gz |
bytealloc: fix typo
< should be <= to match allocation.
-rw-r--r-- | lib/json/test/inputs/n_string_1_surrogate_then_escape | 0 | ||||
-rw-r--r-- | lib/std/bytealloc.myr | 2 | ||||
-rw-r--r-- | u.json | 0 | ||||
-rw-r--r-- | u1.json | 0 | ||||
-rw-r--r-- | u1x.json | 0 |
5 files changed, 1 insertions, 1 deletions
diff --git a/lib/json/test/inputs/n_string_1_surrogate_then_escape b/lib/json/test/inputs/n_string_1_surrogate_then_escape new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/lib/json/test/inputs/n_string_1_surrogate_then_escape diff --git a/lib/std/bytealloc.myr b/lib/std/bytealloc.myr index c16761d..669654e 100644 --- a/lib/std/bytealloc.myr +++ b/lib/std/bytealloc.myr @@ -155,7 +155,7 @@ const bytefree = {p, sz unlock(memlck) ;; memfill(p, 0xa8, sz) - if (sz < Bktmax) + if sz <= Bktmax bkt = &buckets[bktnum(sz)] lock(memlck) bktfree(bkt, p) diff --git a/u1x.json b/u1x.json new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/u1x.json |