Skip to content

Commit 643c393

Browse files
committed
Fix ceiling function
Mixed up the operators.
1 parent 36a2afc commit 643c393

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/renderers/shared/fiber/ReactFiberExpirationTime.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function msToExpirationTime(ms: number): ExpirationTime {
3434
exports.msToExpirationTime = msToExpirationTime;
3535

3636
function ceiling(num: number, precision: number): number {
37-
return (((((num * precision) | 0) + 1) / precision) | 0) + 1;
37+
return (((num / precision) | 0) + 1) * precision;
3838
}
3939

4040
function bucket(

0 commit comments

Comments
 (0)