summaryrefslogtreecommitdiff
path: root/filesystem-win.c
diff options
context:
space:
mode:
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 <=