This quiets the folowing warning without resorting to a cast.
/usr/src/bin/ksh/eval.c:329:19: warning: implicit conversion from 'int' to
'char' changes value from 192 to -64 [-Wconstant-conversion]
*dp++ = '@' + 0x80;
~ ~~~~^~~~~~
The .s file is unchanged with either gcc or clang.
- todd
Index: bin/ksh/eval.c
===================================================================
RCS file: /cvs/src/bin/ksh/eval.c,v
retrieving revision 1.50
diff -u -p -u -r1.50 eval.c
--- bin/ksh/eval.c 5 Mar 2016 12:30:17 -0000 1.50
+++ bin/ksh/eval.c 27 Apr 2017 14:43:28 -0000
@@ -326,7 +326,7 @@ expand(char *cp, /* input word */
* expected)
*/
*dp++ = MAGIC;
- *dp++ = '@' + 0x80;
+ *dp++ = '@' + 0x80U;
break;
case '=':
/* Enabling tilde expansion