shithub: mc

Download patch

ref: b3526b5e8cc2f28b17096115524731afc254e02b
parent: fbd0a767de45e5c5d9dfe6dc4a86c95a328bd22b
author: Ori Bernstein <[email protected]>
date: Sat May 7 13:01:46 EDT 2022

bytealloc: fix typo

	< should be <= to match allocation.

--- a/lib/std/bytealloc.myr
+++ b/lib/std/bytealloc.myr
@@ -155,7 +155,7 @@
 		unlock(memlck)
 	;;
 	memfill(p, 0xa8, sz)
-	if (sz < Bktmax)
+	if sz <= Bktmax
 		bkt = &buckets[bktnum(sz)]
 		lock(memlck)
 		bktfree(bkt, p)