From 854fe99dc35518f2757dcb8d4512d5f528cff3cf Mon Sep 17 00:00:00 2001 From: Ezra Chung Date: Thu, 27 Jul 2023 15:43:12 -0500 Subject: [PATCH] Address C4267 size_t conversion warnings --- src/libbson/src/bson/bson.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libbson/src/bson/bson.c b/src/libbson/src/bson/bson.c index 043ea71d1d4..6a0ad1d7618 100644 --- a/src/libbson/src/bson/bson.c +++ b/src/libbson/src/bson/bson.c @@ -3675,7 +3675,7 @@ bson_array_builder_new (void) * With the NULL terminator, 11 is expected maximum number of \ * characters. */ \ BSON_ASSERT (key_length < sizeof buf); \ - bool ok = append_fn (&bab->bson, key, key_length, __VA_ARGS__); \ + bool ok = append_fn (&bab->bson, key, (int) key_length, __VA_ARGS__); \ if (ok) { \ bab->index += 1; \ } \ @@ -3694,7 +3694,7 @@ bson_array_builder_new (void) * With the NULL terminator, 11 is expected maximum number of \ * characters. */ \ BSON_ASSERT (key_length < sizeof buf); \ - bool ok = append_fn (&bab->bson, key, key_length); \ + bool ok = append_fn (&bab->bson, key, (int) key_length); \ if (ok) { \ bab->index += 1; \ } \