This commit is contained in:
YHH
2020-06-17 22:40:49 +08:00
parent ccf8c4e107
commit e6d6c4199f
8 changed files with 33 additions and 35 deletions

View File

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