mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-20 17:52:52 +00:00
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) {
|
||||
|
||||
/* 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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user