未验证 提交 04d1f04b 编写于 作者: J Jim 提交者: GitHub

Merge pull request #2060 from craftwar/format

Fix Variable type and format specifier
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册