Browse Source

UI/updater: Fix variable type to format specifier

craftwar 6 years ago
parent
commit
6ffc4f590a
1 changed files with 1 additions and 1 deletions
  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);