diff options
| author | Paul Eggert | 2011-06-15 12:57:25 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-06-15 12:57:25 -0700 |
| commit | a7af7fdede602a111401c2352e81311a9dc38b99 (patch) | |
| tree | daebcb8a73345231337d0a461c01ae7804b2b646 /src/floatfns.c | |
| parent | 8c9b210626493dd93f236d7fb312c4f6dba62892 (diff) | |
| parent | b1c46f026de9d185ba86ffb1b23c50f2bd095ccf (diff) | |
| download | emacs-a7af7fdede602a111401c2352e81311a9dc38b99.tar.gz emacs-a7af7fdede602a111401c2352e81311a9dc38b99.zip | |
Integer overflow and signedness fixes (Bug#8873).
Diffstat (limited to 'src/floatfns.c')
| -rw-r--r-- | src/floatfns.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/floatfns.c b/src/floatfns.c index 1232fc0afa1..b5c8b4af5c3 100644 --- a/src/floatfns.c +++ b/src/floatfns.c | |||
| @@ -507,7 +507,7 @@ DEFUN ("expt", Fexpt, Sexpt, 2, 2, 0, | |||
| 507 | if (y & 1) | 507 | if (y & 1) |
| 508 | acc *= x; | 508 | acc *= x; |
| 509 | x *= x; | 509 | x *= x; |
| 510 | y = (unsigned)y >> 1; | 510 | y >>= 1; |
| 511 | } | 511 | } |
| 512 | } | 512 | } |
| 513 | XSETINT (val, acc); | 513 | XSETINT (val, acc); |