summaryrefslogtreecommitdiff
path: root/strftime.c
diff options
context:
space:
mode:
Diffstat (limited to 'strftime.c')
-rw-r--r--strftime.c3
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);