diff options
| author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-03 11:39:53 +0000 |
|---|---|---|
| committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-03 11:39:53 +0000 |
| commit | c53be4f0d67bb78299865d1f2aac741a3a4959ad (patch) | |
| tree | 59911605a5daf534796831ea769e73d966f4ae41 /missing/vsnprintf.c | |
| parent | 7139232649fd0e8ab7c4b0f420a6ed2e786f45e1 (diff) | |
merges r22589 from trunk into ruby_1_9_1.
--
* missing/vsnprintf.c (BSD_vfprintf): ptrdiff_t may be larger than
long.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@22735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'missing/vsnprintf.c')
| -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 a19ed5c6c..9d0e62694 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; |
