]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
librpc:ndr: Use portable integer types
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Tue, 15 Aug 2023 00:37:55 +0000 (12:37 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 21 Aug 2023 23:37:29 +0000 (23:37 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
librpc/ndr/ndr.c

index d9437785ac88a890ee9ab44f09301f5dbdb52e84..a2a8585249e086c3f8339315440a2029a84cc315 100644 (file)
@@ -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;