Skip to content
Commit e6e1ace9 authored by H. Peter Anvin's avatar H. Peter Anvin
Browse files

x86 setup: sizeof() is unsigned, unbreak comparisons



We use signed values for limit checking since the values can go
negative under certain circumstances.  However, sizeof() is unsigned
and forces the comparison to be unsigned, so move the comparison into
the heap_free() macros so we can ensure it is a signed comparison.

Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
parent 6b6815c6
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