aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-02-16 17:30:33 -0800
committerRuss Cox <rsc@golang.org>2010-02-16 17:30:33 -0800
commit401062f720065697bf3461d8d705bf4615320ff0 (patch)
tree5e54304250f5ec428774b944b3b107d2a98d1222
parentcfff862862daa6fe88fca70c4167bafeb36b22c0 (diff)
downloadgo-401062f720065697bf3461d8d705bf4615320ff0.tar.gz
go-401062f720065697bf3461d8d705bf4615320ff0.zip
gc: fix build (signed char bug)
R=ken2 CC=golang-dev https://golang.org/cl/210043
-rw-r--r--src/cmd/gc/subr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/gc/subr.c b/src/cmd/gc/subr.c
index 7072d95e42..8b0ce600b3 100644
--- a/src/cmd/gc/subr.c
+++ b/src/cmd/gc/subr.c
@@ -1539,7 +1539,7 @@ Zconv(Fmt *fp)
switch(r) {
case Runeerror:
if(n == 1) {
- fmtprint(fp, "\\x%02x", *(s-1));
+ fmtprint(fp, "\\x%02x", (uchar)*(s-1));
break;
}
// fall through