Return value of correct type, reported by gcc-4.7

This commit is contained in:
Norman Feske 2012-11-01 17:06:05 +01:00
parent 19a996bcb9
commit d28b34b1fe

View File

@ -209,7 +209,7 @@ class Genode::Irq_proxy : public THREAD,
/* try to create proxy */ /* try to create proxy */
if (!irq_alloc || irq_alloc->alloc_addr(1, irq_number) != Range_allocator::ALLOC_OK) if (!irq_alloc || irq_alloc->alloc_addr(1, irq_number) != Range_allocator::ALLOC_OK)
return false; return 0;
PROXY *new_proxy = new (env()->heap()) PROXY(irq_number); PROXY *new_proxy = new (env()->heap()) PROXY(irq_number);
proxies.insert(new_proxy); proxies.insert(new_proxy);