From 1c0a97bfad9943d796ef9ba5e28c967397a80b77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= Date: Fri, 19 Jun 2020 12:39:16 +0900 Subject: vtm_add_offset: do not goto into a branch I'm not necessarily against every goto in general, but jumping into a branch is definitely a bad idea. Better refactor. --- time.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/time.c b/time.c index b45715a24b..6d599d483a 100644 --- a/time.c +++ b/time.c @@ -1967,10 +1967,8 @@ vtm_add_offset(struct vtm *vtm, VALUE off, int sign) vtm->subsecx = subv(vtm->subsecx, INT2FIX(TIME_SCALE)); sec += 1; } - goto not_zero_sec; } if (sec) { - not_zero_sec: /* If sec + subsec == 0, don't change vtm->sec. * It may be 60 which is a leap second. */ sec += vtm->sec; -- cgit v1.2.3