changeset 108957:81d65beb3ea5

* src/editfns.c (Fbyte_to_string): Pacify compiler.
author Glenn Morris <rgm@gnu.org>
date Wed, 09 Jun 2010 22:31:36 -0700
parents 4f510fa72be2
children 982e5d7f9b1e
files src/ChangeLog src/editfns.c
diffstat 2 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Wed Jun 09 22:28:40 2010 -0700
+++ b/src/ChangeLog	Wed Jun 09 22:31:36 2010 -0700
@@ -1,5 +1,7 @@
 2010-06-10  Glenn Morris  <rgm@gnu.org>
 
+	* editfns.c (Fbyte_to_string): Pacify compiler.
+
 	* m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
 
 2010-06-09  Stefan Monnier  <monnier@iro.umontreal.ca>
--- a/src/editfns.c	Wed Jun 09 22:28:40 2010 -0700
+++ b/src/editfns.c	Wed Jun 09 22:31:36 2010 -0700
@@ -1,7 +1,8 @@
 /* Lisp functions pertaining to editing.
-   Copyright (C) 1985, 1986, 1987, 1989, 1993, 1994, 1995, 1996,
-                 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
-                 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+
+Copyright (C) 1985, 1986, 1987, 1989, 1993, 1994, 1995, 1996, 1997,
+  1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
+  2009, 2010 Free Software Foundation, Inc.
 
 This file is part of GNU Emacs.
 
@@ -225,8 +226,9 @@
      (byte)
      Lisp_Object byte;
 {
+  unsigned char b;
   CHECK_NUMBER (byte);
-  unsigned char b = XINT (byte);
+  b = XINT (byte);
   return make_string_from_bytes (&b, 1, 1);
 }