summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBakasuraRCE <bakasura@protonmail.ch>2020-07-20 17:57:13 -0500
committerPatrick <tingping@tingping.se>2020-10-16 23:19:10 +0200
commitbbbc2aad1bb3bce3ee5245d827af4afe9eb1b128 (patch)
treef8af1ce70399c20a244b4239f573f3d2314a8f69
parent7a275812c0002fe10db5c60e29a34ba6ce4cede1 (diff)
fishlim: Fix cast
-rw-r--r--plugins/fishlim/fish.c4
1 files 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);
     }