1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
shugo 2008-11-24 13:10:07 +00:00
parent 32aed81046
commit aa498028b2
3 changed files with 9 additions and 3 deletions

View file

@ -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);