From 28c460ff710fff155532fd07560ee64489218a16 Mon Sep 17 00:00:00 2001 From: skiars Date: Sun, 15 Oct 2023 13:15:18 +0800 Subject: [PATCH] fix .c compile errors --- cbits/HsUname.c | 2 +- cbits/mktemp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cbits/HsUname.c b/cbits/HsUname.c index ae29dfd..a08199e 100644 --- a/cbits/HsUname.c +++ b/cbits/HsUname.c @@ -289,7 +289,7 @@ int unixcompat_os_display_string(char *pszOS, size_t BUFSIZE) } char buf[80]; - StringCchPrintf(buf, 80, TEXT(" (build %d)"), osvi.dwBuildNumber); + StringCchPrintf(buf, 80, TEXT(" (build %ld)"), osvi.dwBuildNumber); StringCchCat(pszOS, BUFSIZE, buf); if (osvi.dwMajorVersion >= 6) { diff --git a/cbits/mktemp.c b/cbits/mktemp.c index b9ec050..351d88b 100644 --- a/cbits/mktemp.c +++ b/cbits/mktemp.c @@ -47,7 +47,7 @@ static int random(uint32_t *); static int _gettemp(char *, int *); -static const unsigned char padchar[] = +static const char padchar[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; int unixcompat_mkstemp(char *path)