Commit 2dedbe1f by Richard Kenner

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

From-SVN: r11782
parent bde30476
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment