summaryrefslogtreecommitdiff
path: root/filesystem-win.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-01-29 15:46:14 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-01-29 15:46:14 -0500
commit565b5e619ed64f459f1b38b5b94bb72b5b9a714f (patch)
treeb51c3c8cbac11346cafceb7c672222d74c4c7107 /filesystem-win.c
parent5230cb1533d9e30e9870975cba2cd7e7e86bc22a (diff)
parent6f6ae8af3e3fdee60d38fa12f25ff83097522807 (diff)
merge
Diffstat (limited to 'filesystem-win.c')
-rw-r--r--filesystem-win.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/filesystem-win.c b/filesystem-win.c
index d35597f..d9ff143 100644
--- a/filesystem-win.c
+++ b/filesystem-win.c
@@ -68,7 +68,7 @@ int fs_mkdir(char const *path) {
int fs_get_cwd(char *buf, size_t buflen) {
assert(buf && buflen);
- DWORD pathlen = GetCurrentDirectory(buflen, buf);
+ DWORD pathlen = GetCurrentDirectory((DWORD)buflen, buf);
if (pathlen == 0) {
return -1;
} else if (pathlen < buflen) { // it's confusing, but this is < and not <=