aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/bin2array.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/bin2array.c b/scripts/bin2array.c
index 015c2bd7d..4778b446a 100644
--- a/scripts/bin2array.c
+++ b/scripts/bin2array.c
@@ -7,7 +7,7 @@
int main(int argc, char *argv[])
{
int i, end = 0;
- char byte;
+ unsigned char byte;
printf("char %s[] = {\n", argc > 1 ? argv[1] : "data");
while (1)
@@ -20,7 +20,7 @@ int main(int argc, char *argv[])
end = 1;
break;
}
- printf("0x%02x,", byte);
+ printf("0x%02x,", (unsigned int)byte);
}
printf("\n");
if (end)