summaryrefslogtreecommitdiff
path: root/missing
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-10 05:43:14 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-10 05:43:14 +0000
commit2e54fe9d4dd4569032590d0cf1bcea472d422c91 (patch)
tree74d9b6baff5943a68e4339f1f5d7f1a668d8e421 /missing
parentf8147318dd1a613e6594fc4acc931184fefeaddd (diff)
* array.c, bignum.c, gc.c, numeric.c, string.c, util.c, insns.def,
missing/crypt.c, missing/vsnprintf.c, : suppress warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'missing')
-rw-r--r--missing/crypt.c4
-rw-r--r--missing/vsnprintf.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/missing/crypt.c b/missing/crypt.c
index 32736bccfb..5245abd338 100644
--- a/missing/crypt.c
+++ b/missing/crypt.c
@@ -680,13 +680,13 @@ des_cipher(in, out, salt, num_iter)
if (num_iter >= 0)
{ /* encryption */
kp = &KS[0];
- ks_inc = sizeof(*kp);
+ ks_inc = (int)sizeof(*kp);
}
else
{ /* decryption */
num_iter = -num_iter;
kp = &KS[KS_SIZE-1];
- ks_inc = -sizeof(*kp);
+ ks_inc = -(int)sizeof(*kp);
}
while (--num_iter >= 0) {
diff --git a/missing/vsnprintf.c b/missing/vsnprintf.c
index 9d0e626946..d8dd110bbc 100644
--- a/missing/vsnprintf.c
+++ b/missing/vsnprintf.c
@@ -750,7 +750,7 @@ reswitch: switch (ch) {
{
ulval = SARG();
if ((long)ulval < 0) {
- ulval = -ulval;
+ ulval = (u_long)(-(long)ulval);
sign = '-';
}
}