1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

librpc:ndr: Use portable integer types

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-08-15 12:37:55 +12:00 committed by Andrew Bartlett
parent 593a7fb638
commit d5cbb542d0

View File

@ -1012,12 +1012,12 @@ _PUBLIC_ enum ndr_err_code ndr_token_store(TALLOC_CTX *mem_ctx,
return NDR_ERR_RANGE; return NDR_ERR_RANGE;
} }
if (list->count == alloc_count) { if (list->count == alloc_count) {
unsigned new_alloc; uint32_t new_alloc;
/* /*
* Double the list, until we start in chunks * Double the list, until we start in chunks
* of 1000 * of 1000
*/ */
unsigned increment = MIN(list->count, 1000); uint32_t increment = MIN(list->count, 1000);
new_alloc = alloc_count + increment; new_alloc = alloc_count + increment;
if (new_alloc < alloc_count) { if (new_alloc < alloc_count) {
return NDR_ERR_RANGE; return NDR_ERR_RANGE;