hw: no implicit uint-to-int cast in signal submit

ref #528
This commit is contained in:
Martin Stein 2013-08-29 12:30:10 +02:00 committed by Norman Feske
parent 545a397fa6
commit e27c43acc0

View File

@ -1640,7 +1640,7 @@ void Signal_context::ack()
void Signal_context::submit(unsigned const n)
{
assert(_submits < -1 - n);
assert(_submits < (unsigned)~0 - n);
if (_killer) return;
_submits += n;
if (_await_ack) return;