瀏覽代碼

Appease Clang 8

Bryan Drewery 7 年之前
父節點
當前提交
d060965bae
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)