Fix the comparison between unsigned and negative

REBFLG is defined as unsigned, so "ccr < 0" is always false. However,
this function seems not to be really executed anywhere.

Found by coverity.
Add an assert to shut off coverity complains

Coverity issues various complains for unrealistic executive paths.
Merge branch 'atronix' into coverity_scan