浏览代码

UI/updater: Fix variable type to format specifier

craftwar 6 年之前
父节点
当前提交
6ffc4f590a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      UI/win-update/updater/hash.cpp

+ 1 - 1
UI/win-update/updater/hash.cpp

@@ -35,7 +35,7 @@ void HashToString(const uint8_t *in, wchar_t *out)
 
 void StringToHash(const wchar_t *in, BYTE *out)
 {
-	int temp;
+	unsigned int temp;
 
 	for (int i = 0; i < BLAKE2_HASH_LENGTH; i++) {
 		swscanf_s(in + i * 2, L"%02x", &temp);