diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/util/ByteBuffer.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/util/ByteBuffer.ets index 57193e339a90805271c4bb24f091ee4d379331f9..d1d1ae02cd6e7347f9c2ea7038933b55c93a09b2 100644 --- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/util/ByteBuffer.ets +++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/util/ByteBuffer.ets @@ -570,8 +570,8 @@ export class ByteBuffer { * @param littleEndian If the value is little endian. * @returns The value. */ - getInt64(byteOffset: number, littleEndian?: boolean): bigint { - return this.getBigInt64(byteOffset, littleEndian) + getInt64(byteOffset: number, littleEndian?: boolean): number { + return Number(this.getBigInt64(byteOffset, littleEndian)) } /** @@ -579,7 +579,7 @@ export class ByteBuffer { * @param littleEndian If the value is little endian. * @returns The value. */ - readInt64(littleEndian?: boolean): bigint { + readInt64(littleEndian?: boolean): number { const value = this.getInt64(this.mByteOffset, littleEndian) this.mByteOffset += 8 return value