Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl2/texinfo/dist/info Explicitly cast Meta(c) to c...
details: https://anonhg.NetBSD.org/src/rev/f57a905e4921
branches: trunk
changeset: 348197:f57a905e4921
user: joerg <joerg%NetBSD.org@localhost>
date: Sat Oct 08 20:34:59 2016 +0000
description:
Explicitly cast Meta(c) to char as the intermediate value can be too
large for a signed character.
diffstat:
external/gpl2/texinfo/dist/info/infokey.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 1f893b0e310b -r f57a905e4921 external/gpl2/texinfo/dist/info/infokey.c
--- a/external/gpl2/texinfo/dist/info/infokey.c Sat Oct 08 20:30:54 2016 +0000
+++ b/external/gpl2/texinfo/dist/info/infokey.c Sat Oct 08 20:34:59 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: infokey.c,v 1.2 2016/01/14 00:34:52 christos Exp $ */
+/* $NetBSD: infokey.c,v 1.3 2016/10/08 20:34:59 joerg Exp $ */
/* infokey.c -- compile ~/.infokey to ~/.info.
Id: infokey.c,v 1.9 2004/12/14 00:15:36 karl Exp
@@ -446,7 +446,7 @@
#define To_seq(c) \
do { \
if (slen < sizeof seq) \
- seq[slen++] = meta ? Meta(c) : (c); \
+ seq[slen++] = meta ? (char)Meta(c) : (c); \
else \
{ \
syntax_error(filename, lnum, _("key sequence too long"), \
Home |
Main Index |
Thread Index |
Old Index