新增Long库 移除原有Long.ts

This commit is contained in:
YHH
2020-06-17 23:19:25 +08:00
parent e6d6c4199f
commit 59b2f150f3
14 changed files with 3593 additions and 1389 deletions

View File

@@ -132,7 +132,7 @@ class NumberDictionary {
* @param y
*/
private getKey(x: number, y: number): number {
return Number(Long.fromNumber(x << 32).toString()) | this.intToUint(y);
return Long.fromNumber(x).shiftLeft(32).or(this.intToUint(y)).toString();
}
private intToUint(i) {