Ver Fonte

Quiet a clang warning

Bryan Drewery há 7 anos atrás
pai
commit
412e2ece6f
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/crypto/bf_util.cc

+ 1 - 1
src/crypto/bf_util.cc

@@ -99,7 +99,7 @@ bd::String egg_bf_decrypt(bd::String in, const bd::String& key)
   if (in.size() < 12) return out;
 
   // Not valid base64
-  if (eggdrop_blowfish_base64_index[in[0]] == -1) return out;
+  if (eggdrop_blowfish_base64_index[(int)in[0]] == -1) return out;
 
   int cut_off = in.length() % 12;
   if (cut_off > 0)