aboutsummaryrefslogtreecommitdiff
path: root/gas/app.c
diff options
context:
space:
mode:
Diffstat (limited to 'gas/app.c')
-rw-r--r--gas/app.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/app.c b/gas/app.c
index 9e05ef1..b9df9da 100644
--- a/gas/app.c
+++ b/gas/app.c
@@ -577,7 +577,7 @@ do_scrub_chars (size_t (*get) (char *, size_t), char *tostart, size_t tolen,
if (check_multibyte)
(void) scan_for_multibyte_characters ((const unsigned char *) from,
- (const unsigned char* ) fromend,
+ (const unsigned char *) fromend,
true /* Generate warnings. */);
}
@@ -1218,7 +1218,7 @@ do_scrub_chars (size_t (*get) (char *, size_t), char *tostart, size_t tolen,
else
ch = process_escape (ch);
}
- sprintf (out_buf, "%d", (int) (unsigned char) ch);
+ sprintf (out_buf, "%d", ch & 0xff);
/* None of these 'x constants for us. We want 'x'. */
if ((ch = GET ()) != '\'')