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 /missing | |
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
Diffstat (limited to 'missing')
-rw-r--r-- | missing/vsnprintf.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; |