summaryrefslogtreecommitdiff
path: root/win32/win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 587f4cbb1f..49d757f1dc 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -490,9 +490,9 @@ rb_w32_system_tmpdir(WCHAR *path, UINT len)
}
p = translate_wchar(path, L'\\', L'/');
if (*(p - 1) != L'/') *p++ = L'/';
- if (p - path + numberof(temp) >= len) return 0;
+ if ((UINT)(p - path + numberof(temp)) >= len) return 0;
memcpy(p, temp, sizeof(temp));
- return p - path + numberof(temp) - 1;
+ return (UINT)(p - path + numberof(temp) - 1);
}
/* License: Ruby's */