Skip to content

Commit 5e0bae8

Browse files
committed
Update help.ts
1 parent 9543608 commit 5e0bae8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

help.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ namespace Polymesh {
166166
}
167167
}
168168

169-
const div2r = (n: number) => ((n >> 1) + (n & 1));
169+
const div2r = (n: number) => ((n + (n & 1)) >> 1);
170170

171171
export function resizeImage(from: Image, to: Image, center?: boolean) {
172172
if (isEmptyImage(from)) return;

0 commit comments

Comments
 (0)