summaryrefslogtreecommitdiff
path: root/win32/win32.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-06 05:12:48 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-06 05:12:48 +0000
commit42bd9510870bf571d397c47289fd817cfae19ab9 (patch)
treeac29980d30300cd26a8a953711600344062b80d5 /win32/win32.c
parentba3ec382c7fd9e7ffced4bff37a8775985368f31 (diff)
win32.c: supprss warning
* win32/win32.c (rb_w32_system_tmpdir): supprss a sign-compare warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 587f4cb..49d757f 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 */