base: fix bool retval check in heap
Thanks to gcc 6.3 for reporting!
This commit is contained in:
parent
11aadd4ce8
commit
cd5a03758f
|
@ -100,7 +100,7 @@ Heap::Dataspace *Heap::_allocate_dataspace(size_t size, bool enforce_separate_me
|
||||||
if (enforce_separate_metadata) {
|
if (enforce_separate_metadata) {
|
||||||
|
|
||||||
/* allocate the Dataspace structure */
|
/* allocate the Dataspace structure */
|
||||||
if (_unsynchronized_alloc(sizeof(Heap::Dataspace), &ds_meta_data_addr) < 0) {
|
if (!_unsynchronized_alloc(sizeof(Heap::Dataspace), &ds_meta_data_addr)) {
|
||||||
warning("could not allocate dataspace meta data");
|
warning("could not allocate dataspace meta data");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user