mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
Closes: https://bugs.gentoo.org/639540 Closes: https://bugs.gentoo.org/721170 Closes: https://bugs.gentoo.org/921953 Bug: https://bugs.gentoo.org/936109 Signed-off-by: Robert Förster <Dessa@gmake.de> Signed-off-by: Alexys Jacob <ultrabug@gentoo.org>
26 lines
768 B
Diff
26 lines
768 B
Diff
From be865dd759a28aa268232766f304d1bc11f1e8f7 Mon Sep 17 00:00:00 2001
|
|
From: Kevin Albertson <kevin.albertson@mongodb.com>
|
|
Date: Mon, 30 Oct 2023 18:01:30 +0000
|
|
Subject: [PATCH] CDRIVER-4747 use `size_t` consistently in
|
|
`bson_utf8_validate` (#1458)
|
|
|
|
---
|
|
src/libbson/src/bson/bson-utf8.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/libbson/src/bson/bson-utf8.c b/src/libbson/src/bson/bson-utf8.c
|
|
index e122ac31f7..1cebd27069 100644
|
|
--- a/src/libbson/src/bson/bson-utf8.c
|
|
+++ b/src/libbson/src/bson/bson-utf8.c
|
|
@@ -118,8 +118,8 @@ bson_utf8_validate (const char *utf8, /* IN */
|
|
bson_unichar_t c;
|
|
uint8_t first_mask;
|
|
uint8_t seq_length;
|
|
- unsigned i;
|
|
- unsigned j;
|
|
+ size_t i;
|
|
+ size_t j;
|
|
|
|
BSON_ASSERT (utf8);
|
|
|