From bbbc2aad1bb3bce3ee5245d827af4afe9eb1b128 Mon Sep 17 00:00:00 2001 From: BakasuraRCE Date: Mon, 20 Jul 2020 17:57:13 -0500 Subject: [PATCH] fishlim: Fix cast --- plugins/fishlim/fish.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/fishlim/fish.c b/plugins/fishlim/fish.c index 9301d5d5..88f7caec 100644 --- a/plugins/fishlim/fish.c +++ b/plugins/fishlim/fish.c @@ -164,8 +164,8 @@ char *fish_base64_decode(const char *message, size_t *final_len) { while (*msg) { right = 0; left = 0; - for (i = 0; i < 6; i++) right |= (uint8_t) fish_unbase64[*msg++] << (i * 6u); - for (i = 0; i < 6; i++) left |= (uint8_t) fish_unbase64[*msg++] << (i * 6u); + for (i = 0; i < 6; i++) right |= (uint8_t) fish_unbase64[(int)*msg++] << (i * 6u); + for (i = 0; i < 6; i++) left |= (uint8_t) fish_unbase64[(int)*msg++] << (i * 6u); GET_BYTES(byt, left); GET_BYTES(byt, right); }