From aa498028b28b709db51408c0855163cc8adfbb8b Mon Sep 17 00:00:00 2001 From: shugo Date: Mon, 24 Nov 2008 13:10:07 +0000 Subject: * strftime.c (rb_strftime): The precision of %0N should be 9. [ruby-dev:37156] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- strftime.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'strftime.c') diff --git a/strftime.c b/strftime.c index 5565a9be07..2c98164c0b 100644 --- a/strftime.c +++ b/strftime.c @@ -673,8 +673,7 @@ rb_strftime(char *s, size_t maxsize, const char *format, const struct tm *timept { long n = ts->tv_nsec; - if (precision == 0) continue; - if (precision < 0) { + if (precision <= 0) { precision = w; } NEEDS(precision); -- cgit v1.2.1