diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-24 04:13:53 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-24 04:13:53 +0000 |
commit | 5028921a25dd9bba8260579140f4c8b591f06bf4 (patch) | |
tree | b7d319cbf17569dfdeaf894624c7b763647c5899 | |
parent | 6bdeed2b479dad4b4a735fb8075db1b96dd3101c (diff) | |
download | ruby-5028921a25dd9bba8260579140f4c8b591f06bf4.tar.gz |
* missing/vsnprintf.c (BSD_vfprintf): ptrdiff_t may be larger than
long.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | missing/vsnprintf.c | 5 |
2 files changed, 10 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Tue Feb 24 13:13:49 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * missing/vsnprintf.c (BSD_vfprintf): ptrdiff_t may be larger than + long. + Tue Feb 24 11:21:50 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> * signal.c (rb_disable_interrupt, rb_enable_interrupt): see diff --git a/missing/vsnprintf.c b/missing/vsnprintf.c index a19ed5c6cc..9d0e626946 100644 --- a/missing/vsnprintf.c +++ b/missing/vsnprintf.c @@ -713,11 +713,16 @@ reswitch: switch (ch) { case 'h': flags |= SHORTINT; goto rflag; +#if SIZEOF_PTRDIFF_T == SIZEOF_LONG case 't': +#endif case 'l': flags |= LONGINT; goto rflag; #ifdef _HAVE_SANE_QUAD_ +#if SIZEOF_PTRDIFF_T == SIZEOF_LONG_LONG + case 't': +#endif case 'q': flags |= QUADINT; goto rflag; |