summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2017-01-30 17:09:12 +0100
committerRalf Baechle <ralf@linux-mips.org>2017-02-06 23:43:46 +0100
commit6f3c1ec5b5e202d45bff3a3dd8206dd89c129555 (patch)
treeb9dfc69e353cb3b810d05e67881fc4feff8b1d5f
parent9529ed33af0ca22c1716ab8e9628f7cb70733cc0 (diff)
rsuplnk: Add cast to silence useless warning.
rsuplnk.c: In function ‘main’: rsuplnk.c:262:17: warning: overflow in implicit constant conversion [-Woverflow] buffer[0] = 0xF0; ^~~~ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r--rose/rsuplnk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rose/rsuplnk.c b/rose/rsuplnk.c
index 44465e4..2ed59ce 100644
--- a/rose/rsuplnk.c
+++ b/rose/rsuplnk.c
@@ -259,7 +259,7 @@ int main(int argc, char **argv)
break;
}
if (buffer[0] == 0) { /* Q Bit not set */
- buffer[0] = 0xF0;
+ buffer[0] = (char) 0xF0;
write(STDOUT_FILENO, buffer, n);
} else {
/* Lose the leading 0x7F */