diff options
| author | Kacper <kacper@mail.openlinux.dev> | 2025-12-25 19:24:38 +0100 |
|---|---|---|
| committer | Kacper <kacper@mail.openlinux.dev> | 2025-12-25 20:35:03 +0100 |
| commit | a984eb367c032dbe2577f01238c3d1268526be70 (patch) | |
| tree | 437fef40379b2758b129ccea39df3570fa2d145e /lib/libc/time/gmtime_r.c | |
| parent | 8834571b202cf4dc9c649cfb096c213b6ecf1566 (diff) | |
Clang-tidy fixes
Diffstat (limited to 'lib/libc/time/gmtime_r.c')
| -rw-r--r-- | lib/libc/time/gmtime_r.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libc/time/gmtime_r.c b/lib/libc/time/gmtime_r.c index 47dbd105..cb66e6cf 100644 --- a/lib/libc/time/gmtime_r.c +++ b/lib/libc/time/gmtime_r.c @@ -26,9 +26,7 @@ struct tm *gmtime_r(const time_t *timer, struct tm *result) long z = days + 719468; long era = (z >= 0 ? z : z - 146096) / 146097; long day_of_era = z - era * 146097; - long yoe = (day_of_era - day_of_era / 1460 + day_of_era / 36524 - - day_of_era / 146096) / - 365; + long yoe = (day_of_era - day_of_era / 1460 + day_of_era / 36524 - day_of_era / 146096) / 365; year = (int)(yoe + era * 400); long doy = day_of_era - (365 * yoe + yoe / 4 - yoe / 100); result->tm_yday = (int)doy; |
