diff options
author | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-24 13:10:07 +0000 |
---|---|---|
committer | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-24 13:10:07 +0000 |
commit | aa498028b28b709db51408c0855163cc8adfbb8b (patch) | |
tree | 0d0ad33ccde61a2ad995b162d07c129c5eb79355 /strftime.c | |
parent | 32aed810463a40807db2192c91faa7cec2cb23d5 (diff) | |
download | ruby-aa498028b28b709db51408c0855163cc8adfbb8b.tar.gz |
* 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
Diffstat (limited to 'strftime.c')
-rw-r--r-- | strftime.c | 3 |
1 files changed, 1 insertions, 2 deletions
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); |