From: Paul Eggert Date: Mon, 13 Jun 2011 02:27:16 +0000 (-0700) Subject: * floatfns.c (Fexpt): Omit unnecessary cast to unsigned. X-Git-Tag: emacs-pretest-24.0.90~104^2~548^2~35 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=395fcb936ef44b658b396802db194b030b003c8c;p=emacs.git * floatfns.c (Fexpt): Omit unnecessary cast to unsigned. --- diff --git a/src/ChangeLog b/src/ChangeLog index 0d1dcfc7d13..08b99fd1b79 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,6 @@ 2011-06-13 Paul Eggert + * floatfns.c (Fexpt): * fileio.c (make_temp_name): Omit unnecessary cast to unsigned. * editfns.c (Ftranslate_region_internal): Use int, not EMACS_INT 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, if (y & 1) acc *= x; x *= x; - y = (unsigned)y >> 1; + y >>= 1; } } XSETINT (val, acc);