(eadd1): Check for overflow on X plus X.

From-SVN: r11782
This commit is contained in:
Richard Kenner 1996-04-15 08:06:07 -04:00
parent bde304768e
commit 2dedbe1f31
1 changed files with 8 additions and 1 deletions

View File

@ -2663,8 +2663,15 @@ eadd1 (a, b, c)
{
if (bi[j] != 0)
{
/* This could overflow, but let emovo take care of that. */
ltb += 1;
if (ltb >= 0x7fff)
{
eclear (c);
if (ai[0] != 0)
eneg (c);
einfin (c);
return;
}
break;
}
}