]> git.saurik.com Git - bison.git/blobdiff - src/location.c
tests: beware that clang warns about "#define private public"
[bison.git] / src / location.c
index 662b2a12a07bde5c07b0fabbd698a1661d3ad0f7..4fb55934512d53d5d5d69c8bdbf30e2877eae661 100644 (file)
@@ -1,6 +1,6 @@
 /* Locations for Bison
 
-   Copyright (C) 2002, 2005-2013 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2005-2015 Free Software Foundation, Inc.
 
    This file is part of Bison, the GNU Compiler Compiler.
 
@@ -188,7 +188,7 @@ location_caret (location loc, FILE *out)
   /* Read the actual line.  Don't update the offset, so that we keep a pointer
      to the start of the line.  */
   {
-    char c = getc (caret_info.source);
+    int c = getc (caret_info.source);
     if (c != EOF)
       {
         /* Quote the file, indent by a single column.  */