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 | 86ff9dda4781c853c80f7ea239f33a021d368726 (patch) | |
tree | 0d0ad33ccde61a2ad995b162d07c129c5eb79355 /strftime.c | |
parent | ed0d7ef77f0d659720b4c9b211b8e91fde64472c (diff) | |
download | ruby-86ff9dda4781c853c80f7ea239f33a021d368726.tar.gz ruby-86ff9dda4781c853c80f7ea239f33a021d368726.tar.xz ruby-86ff9dda4781c853c80f7ea239f33a021d368726.zip |
* strftime.c (rb_strftime): The precision of %0N should be 9.
[ruby-dev:37156]
git-svn-id: http://svn.ruby-lang.org/repos/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 5565a9be0..2c98164c0 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); |