diff options
author | ru <ru@FreeBSD.org> | 2000-12-06 09:21:36 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2000-12-06 09:21:36 +0000 |
commit | 35ab1437f2af1825409d35daf63f4fae982a493e (patch) | |
tree | bdff593ff1b962e149e0b56ca408c2db00760b8b | |
parent | 3e71b11e0861bc96f88a1b0d90ab2547ca0daa3b (diff) | |
download | FreeBSD-src-35ab1437f2af1825409d35daf63f4fae982a493e.zip FreeBSD-src-35ab1437f2af1825409d35daf63f4fae982a493e.tar.gz |
Backout rev 1.2 (workaround for gcc 2.60 expression evaluation
bug) as later versions of gcc have apparently this bug fixed.
-rw-r--r-- | contrib/groff/libgroff/font.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/contrib/groff/libgroff/font.cc b/contrib/groff/libgroff/font.cc index 7e75c7b..d0254e4 100644 --- a/contrib/groff/libgroff/font.cc +++ b/contrib/groff/libgroff/font.cc @@ -197,11 +197,7 @@ static int scale_round(int n, int x, int y) } else { if (-(unsigned)n <= (-(unsigned)INT_MIN - y2)/x) - { - // XXX simplify expression to work around bug in gcc-2.6.0 - int tmp = n*x - y2; - return tmp/y; - } + return (n*x - y2)/y; return int(n*double(x)/double(y) - .5); } } |