Commit dc008af9 authored by David du Colombier's avatar David du Colombier

cmd/ld: fix warnings on Plan 9

warning: src/cmd/ld/macho.c:595 sign-extended character constant
warning: src/cmd/ld/macho.c:595 sign-extended character constant
warning: src/cmd/ld/symtab.c:63 sign-extended character constant
warning: src/cmd/ld/symtab.c:63 sign-extended character constant

LGTM=iant
R=golang-codereviews, iant
CC=golang-codereviews
https://golang.org/cl/76580046
parent f182a6ee
...@@ -592,7 +592,7 @@ machosymtab(void) ...@@ -592,7 +592,7 @@ machosymtab(void)
} else { } else {
p = s->extname; p = s->extname;
while (*p++ != '\0') { while (*p++ != '\0') {
if(*p == '\xc2' && *(p+1) == '\xb7') { if((uchar)*p == 0xc2 && (uchar)*(p+1) == 0xb7) {
adduint8(ctxt, symstr, '.'); adduint8(ctxt, symstr, '.');
p++; p++;
} else { } else {
......
...@@ -60,7 +60,7 @@ putelfstr(char *s) ...@@ -60,7 +60,7 @@ putelfstr(char *s)
if(p != nil) { if(p != nil) {
p = q = elfstrdat+off; p = q = elfstrdat+off;
while (*q != '\0') { while (*q != '\0') {
if(*q == '\xc2' && *(q+1) == '\xb7') { if((uchar)*q == 0xc2 && (uchar)*(q+1) == 0xb7) {
q += 2; q += 2;
*p++ = '.'; *p++ = '.';
elfstrsize--; elfstrsize--;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment