1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* file.c (statfs_inspect): suppress warnings.

assume those values won't be larger than LONG_LONG_MAX.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2014-04-24 08:46:56 +00:00
parent d182cd3053
commit f83d51d814
2 changed files with 9 additions and 4 deletions

View file

@ -1,3 +1,8 @@
Thu Apr 24 17:39:53 2014 NARUSE, Yui <naruse@ruby-lang.org>
* file.c (statfs_inspect): suppress warnings.
assume those values won't be larger than LONG_LONG_MAX.
Thu Apr 24 11:53:28 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/openssl/ossl_asn1.c (ossl_asn1_initialize): SYMID on a value

8
file.c
View file

@ -5570,7 +5570,7 @@ static VALUE
statfs_inspect(VALUE self)
{
struct statfs*st = get_statfs(self);
return rb_sprintf("#<%"PRIsVALUE" type=%d"
return rb_sprintf("#<%"PRIsVALUE" type=%ld"
#ifdef HAVE_STRUCT_STATFS_F_FSTYPENAME
"(%s)"
#endif
@ -5578,13 +5578,13 @@ statfs_inspect(VALUE self)
", blocks=%"PRI_LL_PREFIX"d/%"PRI_LL_PREFIX"d/%"PRI_LL_PREFIX"d"
", files=%"PRI_LL_PREFIX"d/%"PRI_LL_PREFIX"d"
">",
rb_obj_class(self), st->f_type,
rb_obj_class(self), (long)st->f_type,
#ifdef HAVE_STRUCT_STATFS_F_FSTYPENAME
st->f_fstypename,
#endif
(long)st->f_bsize,
st->f_bavail, st->f_bfree, st->f_blocks,
st->f_ffree, st->f_files);
(LONG_LONG)st->f_bavail, (LONG_LONG)st->f_bfree, (LONG_LONG)st->f_blocks,
(LONG_LONG)st->f_ffree, (LONG_LONG)st->f_files);
}
#endif