From 049d98c6ffae93db44e83a6f8a88cb66cba735a1 Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 4 Feb 2009 01:16:14 +0000 Subject: [PATCH] * missing/vsnprintf.c (BSD_vfprintf): should support 't' format modifier to handle PRIdPTRDIFF. thanks for the info from Kazuhiro NISHIYAMA. [ruby-core:21807] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ missing/vsnprintf.c | 1 + 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 76490ab8ed..552e9a421c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Wed Feb 4 10:12:05 2009 Yukihiro Matsumoto + + * missing/vsnprintf.c (BSD_vfprintf): should support 't' format + modifier to handle PRIdPTRDIFF. thanks for the info from + Kazuhiro NISHIYAMA. [ruby-core:21807] + Wed Feb 4 01:28:46 2009 Tanaka Akira * ext/socket/extconf.rb: fix struct in_pktinfo and struct in6_pktinfo diff --git a/missing/vsnprintf.c b/missing/vsnprintf.c index 1ea2f143c2..ac649a4670 100644 --- a/missing/vsnprintf.c +++ b/missing/vsnprintf.c @@ -713,6 +713,7 @@ reswitch: switch (ch) { case 'h': flags |= SHORTINT; goto rflag; + case 't': case 'l': flags |= LONGINT; goto rflag;