diff --git a/ChangeLog b/ChangeLog index ed1be3bff6..7082638854 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Feb 24 13:13:49 2009 Nobuyoshi Nakada + + * missing/vsnprintf.c (BSD_vfprintf): ptrdiff_t may be larger than + long. + Tue Feb 24 11:21:50 2009 Nobuyoshi Nakada * 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;