[gjs/mozjs91: 6/21] Typed arrays use size_t instead of uint32_t in mozjs91
- From: Evan Welsh <ewlsh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/mozjs91: 6/21] Typed arrays use size_t instead of uint32_t in mozjs91
- Date: Sun, 11 Jul 2021 04:08:04 +0000 (UTC)
commit 9de8d9082fe6cf8f0dc024d839867a5a901de577
Author: Evan Welsh <contact evanwelsh com>
Date: Sat Jul 10 20:23:55 2021 -0700
Typed arrays use size_t instead of uint32_t in mozjs91
gjs/byteArray.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gjs/byteArray.cpp b/gjs/byteArray.cpp
index 20df4a40..8c59e837 100644
--- a/gjs/byteArray.cpp
+++ b/gjs/byteArray.cpp
@@ -99,7 +99,7 @@ static bool to_string_impl(JSContext* context, JS::HandleObject byte_array,
encoding_is_utf8 = true;
}
- uint32_t len;
+ size_t len;
bool is_shared_memory;
js::GetUint8ArrayLengthAndData(byte_array, &len, &is_shared_memory, &data);
@@ -126,7 +126,7 @@ static bool to_string_impl(JSContext* context, JS::HandleObject byte_array,
}
uint8_t* current_data;
- uint32_t current_len;
+ size_t current_len;
bool ignore_val;
// If a garbage collection occurs between when we call
@@ -400,7 +400,7 @@ JSObject* gjs_byte_array_from_byte_array(JSContext* cx, GByteArray* array) {
GBytes* gjs_byte_array_get_bytes(JSObject* obj) {
bool is_shared_memory;
- uint32_t len;
+ size_t len;
uint8_t* data;
js::GetUint8ArrayLengthAndData(obj, &len, &is_shared_memory, &data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]