Module Name:    src
Committed By:   joerg
Date:           Sat Oct  8 20:44:59 UTC 2016

Modified Files:
        src/external/gpl2/groff/dist/src/roff/troff: input.cpp

Log Message:
BEGIN_QUOTE and END_QUOTE have values outside the range of a signed char
for non-EBCDIC host. Explicitly cast them to char to avoid the implicit
cast.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
    src/external/gpl2/groff/dist/src/roff/troff/input.cpp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl2/groff/dist/src/roff/troff/input.cpp
diff -u src/external/gpl2/groff/dist/src/roff/troff/input.cpp:1.2 src/external/gpl2/groff/dist/src/roff/troff/input.cpp:1.3
--- src/external/gpl2/groff/dist/src/roff/troff/input.cpp:1.2	Wed Jan 13 19:01:59 2016
+++ src/external/gpl2/groff/dist/src/roff/troff/input.cpp	Sat Oct  8 20:44:59 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: input.cpp,v 1.2 2016/01/13 19:01:59 christos Exp $	*/
+/*	$NetBSD: input.cpp,v 1.3 2016/10/08 20:44:59 joerg Exp $	*/
 
 // -*- C++ -*-
 /* Copyright (C) 1989, 1990, 1991, 1992, 2000, 2001, 2002, 2003, 2004, 2005
@@ -941,11 +941,11 @@ static int get_copy(node **nd, int defin
       compatible_flag = input_stack::get_compatible_flag();
       continue;
     }
-    if (c == BEGIN_QUOTE) {
+    if (c == (char)BEGIN_QUOTE) {
       input_stack::increase_level();
       continue;
     }
-    if (c == END_QUOTE) {
+    if (c == (char)END_QUOTE) {
       input_stack::decrease_level();
       continue;
     }
@@ -4238,12 +4238,12 @@ static void interpolate_arg(symbol nm)
     string args;
     for (int i = 1; i <= limit; i++) {
       args += '"';
-      args += BEGIN_QUOTE;
+      args += (char)BEGIN_QUOTE;
       input_iterator *p = input_stack::get_arg(i);
       int c;
       while ((c = p->get(0)) != EOF)
 	args += c;
-      args += END_QUOTE;
+      args += (char)END_QUOTE;
       args += '"';
       if (i != limit)
 	args += ' ';

Reply via email to