base: fix bool retval check in heap

Thanks to gcc 6.3 for reporting!
This commit is contained in:
Norman Feske 2017-04-21 14:55:37 +02:00 committed by Christian Helmuth
parent 11aadd4ce8
commit cd5a03758f
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ Heap::Dataspace *Heap::_allocate_dataspace(size_t size, bool enforce_separate_me
if (enforce_separate_metadata) {
/* 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");
return 0;
}