* floatfns.c (Fexpt): Omit unnecessary cast to unsigned.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 13 Jun 2011 02:27:16 +0000 (19:27 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 13 Jun 2011 02:27:16 +0000 (19:27 -0700)
src/ChangeLog
src/floatfns.c

index 0d1dcfc..08b99fd 100644 (file)
@@ -1,5 +1,6 @@
 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * floatfns.c (Fexpt):
        * fileio.c (make_temp_name): Omit unnecessary cast to unsigned.
 
        * editfns.c (Ftranslate_region_internal): Use int, not EMACS_INT
index 1232fc0..b5c8b4a 100644 (file)
@@ -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);