[wp-trac] [WordPress Trac] #58683: Cast return value to int in functions that use ceil()
WordPress Trac
noreply at wordpress.org
Sat Feb 17 15:22:53 UTC 2024
#58683: Cast return value to int in functions that use ceil()
------------------------------+-----------------------
Reporter: crstauf | Owner: audrasjb
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.5
Component: General | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses:
------------------------------+-----------------------
Changes (by swissspidy):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"57648" 57648]:
{{{
#!CommitTicketReference repository="" revision="57648"
General: Consistently cast return value to `int` in functions that use
`ceil()`.
The return value of `ceil()` is still of type `float` as the value range
of `float` is usually bigger than that of `int`.
Props crstauf, audrasjb.
Fixes #58683.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58683#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list