From: Tim Düsterhus Date: Mon, 24 Apr 2023 12:19:24 +0000 (+0200) Subject: Use `intdiv()` in `ExifUtil::simplifyRational()` X-Git-Tag: 6.0.0_Alpha_1~211 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=291e7d9591af1fc8cacca66bc0a6706a8fe48a9b;p=GitHub%2FWoltLab%2FWCF.git Use `intdiv()` in `ExifUtil::simplifyRational()` --- 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)); } /**