Merge pull request #2060 from craftwar/format

Fix Variable type and format specifier
This commit is contained in:
Jim
2019-09-03 13:09:32 -07:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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);
@@ -493,7 +493,7 @@ static inline void unlock_shmem_tex(int id)
static inline bool init_shared_info(size_t size)
{
wchar_t name[64];
_snwprintf(name, 64, L"%s%ld", SHMEM_TEXTURE, ++shmem_id_counter);
_snwprintf(name, 64, L"%s%u", SHMEM_TEXTURE, ++shmem_id_counter);
shmem_file_handle = CreateFileMappingW(INVALID_HANDLE_VALUE, NULL,
PAGE_READWRITE, 0, (DWORD)size,