Skip to content
Commit b9408d77 authored by Jason Evans's avatar Jason Evans
Browse files

Fix/simplify chunk_recycle() allocation size computations.

Remove outer CHUNK_CEILING(s2u(...)) from alloc_size computation, since
s2u() may overflow (and return 0), and CHUNK_CEILING() is only needed
around the alignment portion of the computation.

This fixes a regression caused by
5707d6f9 (Quantize szad trees by size
class.) and first released in 4.0.0.

This resolves #497.
parent 2cdf07ab
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment