From 291e7d9591af1fc8cacca66bc0a6706a8fe48a9b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 24 Apr 2023 14:19:24 +0200 Subject: [PATCH] Use `intdiv()` in `ExifUtil::simplifyRational()` --- wcfsetup/install/files/lib/util/ExifUtil.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/util/ExifUtil.class.php b/wcfsetup/install/files/lib/util/ExifUtil.class.php index 8878f5dee3..bdee394585 100644 --- a/wcfsetup/install/files/lib/util/ExifUtil.class.php +++ b/wcfsetup/install/files/lib/util/ExifUtil.class.php @@ -300,7 +300,7 @@ final class ExifUtil $denonimator = $data[1]; $gcd = self::gcd($numerator, $denonimator); - return \sprintf('%d/%d', $numerator / $gcd, $denonimator / $gcd); + return \sprintf('%d/%d', \intdiv($numerator, $gcd), \intdiv($denonimator, $gcd)); } /** -- 2.20.1