]> git.eshelyaron.com Git - emacs.git/commitdiff
* lib-src/make-docfile.c (search_lisp_doc_at_eol): Use int rather than char
authorGlenn Morris <rgm@gnu.org>
Thu, 10 Oct 2013 01:29:30 +0000 (21:29 -0400)
committerGlenn Morris <rgm@gnu.org>
Thu, 10 Oct 2013 01:29:30 +0000 (21:29 -0400)
with getc.

Fixes: debbugs:15481
lib-src/ChangeLog
lib-src/make-docfile.c

index 1186a0c025cb30d789e64a6eb4adde2785bc1a46..0b91cc4887f71d29e97bd62b1e8fe4779e696e08 100644 (file)
@@ -1,3 +1,8 @@
+2013-10-10  Glenn Morris  <rgm@gnu.org>
+
+       * make-docfile.c (search_lisp_doc_at_eol):
+       Use int rather than char with getc.  (Bug#15481)
+
 2013-09-20  Paul Eggert  <eggert@cs.ucla.edu>
 
        A simpler, centralized INLINE.
index 73d1a0eb31d3b78360d2c93062c83fbfffd9d725..36eb71c587ba5a6c1f5b6d401d17621889885342 100644 (file)
@@ -1075,7 +1075,7 @@ read_lisp_symbol (FILE *infile, char *buffer)
 static int
 search_lisp_doc_at_eol (FILE *infile)
 {
-  char c = 0, c1 = 0, c2 = 0;
+  int c = 0, c1 = 0, c2 = 0;
 
   /* Skip until the end of line; remember two previous chars.  */
   while (c != '\n' && c != '\r' && c != EOF)