Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.

Commit 0e7d5fc

Browse files
committed
Should be Double since returns number larger than int
1 parent 17c6541 commit 0e7d5fc

File tree

1 file changed

+2
-2
lines changed
  • app/nodejs-v14/src/main/scala/io/scalajs/nodejs/buffer

1 file changed

+2
-2
lines changed

app/nodejs-v14/src/main/scala/io/scalajs/nodejs/buffer/package.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ package object buffer {
8585
@JSImport("buffer", JSImport.Namespace)
8686
private object BufferNamespace extends js.Object {
8787
val INSPECT_MAX_BYTES: Int = js.native
88-
val kMaxLength: Int = js.native
88+
val kMaxLength: Double = js.native
8989
def transcode(source: Uint8Array, fromEnc: String, toEnc: String): Buffer = js.native
9090
}
9191

@@ -99,7 +99,7 @@ package object buffer {
9999
* On 32-bit architectures, this value is `(2^30)-1` (~1GB).
100100
* On 64-bit architectures, this value is `(2^31)-1` (~2GB).
101101
*/
102-
val MAX_LENGTH: Int = js.native
102+
val MAX_LENGTH: Double = js.native
103103

104104
/**
105105
* The largest length allowed for a single `String` instance.

0 commit comments

Comments
 (0)