small fix to use correct register

This commit is contained in:
Oliver Lehmann 2008-05-29 19:33:22 +00:00
parent a421c2df15
commit 1c07f10dbf
1 changed files with 1 additions and 2 deletions

View File

@ -78,8 +78,7 @@ sureg()
estabur(nt, nd, ns, sep)
register unsigned nt, nd, ns;
{
/*FIXME: the 3rd test should be done in r5, not r2 */
if(((nt > 0x100 || (nd+ns) > 0x00ff)) || (maxmem < nt+nd+ns+USIZE)) {
if(nt > 0x100 || ((nd+ns) > 0x00ff || (nt+nd+ns+USIZE) > maxmem)) {
u.u_error = ENOMEM;
return(-1);
}