Skip to content

Commit

Permalink
More cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hildjj committed Dec 11, 2024
1 parent bc540a0 commit f30c243
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export function mod<T extends number | bigint>(x: T, y: T): T {
*/
export function divmod<T extends number | bigint>(x: T, y: T): [T, T] {
let q = (x / y) as unknown as T;
const r: T = mod(x, y);
const r = mod(x, y);
if (typeof x === 'bigint') {
// Not only does Math.floor not work for BigInt, it's not needed because
// `/` does the right thing in the first place.
Expand Down

0 comments on commit f30c243

Please sign in to comment.