From: Joseph Sutton Date: Tue, 15 Aug 2023 00:37:55 +0000 (+1200) Subject: librpc:ndr: Use portable integer types X-Git-Tag: tevent-0.16.0~890 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5cbb542d0f915407ce720edddfc74bdfd6c2b2d;p=thirdparty%2Fsamba.git librpc:ndr: Use portable integer types Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/librpc/ndr/ndr.c b/librpc/ndr/ndr.c index d9437785ac8..a2a8585249e 100644 --- a/librpc/ndr/ndr.c +++ b/librpc/ndr/ndr.c @@ -1012,12 +1012,12 @@ _PUBLIC_ enum ndr_err_code ndr_token_store(TALLOC_CTX *mem_ctx, return NDR_ERR_RANGE; } if (list->count == alloc_count) { - unsigned new_alloc; + uint32_t new_alloc; /* * Double the list, until we start in chunks * of 1000 */ - unsigned increment = MIN(list->count, 1000); + uint32_t increment = MIN(list->count, 1000); new_alloc = alloc_count + increment; if (new_alloc < alloc_count) { return NDR_ERR_RANGE;