summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2022-05-07 17:01:46 +0000
committerOri Bernstein <ori@eigenstate.org>2022-05-07 17:01:46 +0000
commitb3526b5e8cc2f28b17096115524731afc254e02b (patch)
treec4b4fb449df7f68e3599d0f33519ae499beb2539
parentfbd0a767de45e5c5d9dfe6dc4a86c95a328bd22b (diff)
downloadmc-b3526b5e8cc2f28b17096115524731afc254e02b.tar.gz
bytealloc: fix typo
< should be <= to match allocation.
-rw-r--r--lib/json/test/inputs/n_string_1_surrogate_then_escape0
-rw-r--r--lib/std/bytealloc.myr2
-rw-r--r--u.json0
-rw-r--r--u1.json0
-rw-r--r--u1x.json0
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/u.json b/u.json
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/u.json
diff --git a/u1.json b/u1.json
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/u1.json
diff --git a/u1x.json b/u1x.json
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/u1x.json