Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl2/groff/dist/src/roff/troff BEGIN_QUOTE and END_...
details: https://anonhg.NetBSD.org/src/rev/ff9e3337db76
branches: trunk
changeset: 348198:ff9e3337db76
user: joerg <joerg%NetBSD.org@localhost>
date: Sat Oct 08 20:44:59 2016 +0000
description:
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.
diffstat:
external/gpl2/groff/dist/src/roff/troff/input.cpp | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (38 lines):
diff -r f57a905e4921 -r ff9e3337db76 external/gpl2/groff/dist/src/roff/troff/input.cpp
--- a/external/gpl2/groff/dist/src/roff/troff/input.cpp Sat Oct 08 20:34:59 2016 +0000
+++ b/external/gpl2/groff/dist/src/roff/troff/input.cpp Sat Oct 08 20:44:59 2016 +0000
@@ -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 @@
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 @@
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 += ' ';
Home |
Main Index |
Thread Index |
Old Index