summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bootloader_message_twrp/bootloader_message.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/bootloader_message_twrp/bootloader_message.cpp b/bootloader_message_twrp/bootloader_message.cpp
index 55d3a5d9e..67197399a 100644
--- a/bootloader_message_twrp/bootloader_message.cpp
+++ b/bootloader_message_twrp/bootloader_message.cpp
@@ -341,7 +341,7 @@ get_args(int *argc, char ***argv) {
(*argv)[*argc] = strdup(arg);
}
printf("Got arguments from boot message\n");
- } else if (boot.recovery[0] != 0 && boot.recovery[0] != 255) {
+ } else if (boot.recovery[0] != 0 && boot.recovery[0] != (char)255) {
printf("Bad boot message\n\"%.20s\"\n", boot.recovery);
}
}