Module Name: src
Committed By: joerg
Date: Tue Oct 4 15:09:03 UTC 2016
Modified Files:
src/bin/ksh: eval.c
Log Message:
Add explicit char cast to show that the value change is intended.
To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/bin/ksh/eval.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/bin/ksh/eval.c
diff -u src/bin/ksh/eval.c:1.15 src/bin/ksh/eval.c:1.16
--- src/bin/ksh/eval.c:1.15 Fri Oct 18 19:53:34 2013
+++ src/bin/ksh/eval.c Tue Oct 4 15:09:03 2016
@@ -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 @@ expand(cp, wp, f)
* expected)
*/
*dp++ = MAGIC;
- *dp++ = '@' + 0x80;
+ *dp++ = (char)('@' + 0x80);
break;
case '=':
/* Enabling tilde expansion