Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/ksh Add explicit char cast to show that the value change...
details: https://anonhg.NetBSD.org/src/rev/10cd418a948c
branches: trunk
changeset: 348102:10cd418a948c
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Oct 04 15:09:03 2016 +0000
description:
Add explicit char cast to show that the value change is intended.
diffstat:
bin/ksh/eval.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 53244afe1338 -r 10cd418a948c bin/ksh/eval.c
--- a/bin/ksh/eval.c Tue Oct 04 15:06:59 2016 +0000
+++ b/bin/ksh/eval.c Tue Oct 04 15:09:03 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: eval.c,v 1.15 2013/10/18 19:53:34 christos Exp $ */
+/* $NetBSD: eval.c,v 1.16 2016/10/04 15:09:03 joerg Exp $ */
/*
* Expansion - quoting, separation, substitution, globbing
@@ -6,7 +6,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: eval.c,v 1.15 2013/10/18 19:53:34 christos Exp $");
+__RCSID("$NetBSD: eval.c,v 1.16 2016/10/04 15:09:03 joerg Exp $");
#endif
#include <stdint.h>
@@ -345,7 +345,7 @@
* expected)
*/
*dp++ = MAGIC;
- *dp++ = '@' + 0x80;
+ *dp++ = (char)('@' + 0x80);
break;
case '=':
/* Enabling tilde expansion
Home |
Main Index |
Thread Index |
Old Index