]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Cast UINTPTR_MAX
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 17 Aug 2021 15:33:53 +0000 (10:33 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 17 Aug 2021 15:34:05 +0000 (10:34 -0500)
src/lib/util/heap.c

index eaa107ea8c9f8ead93c0b3a55bf112e6ceb0a2f2..ef56e890bebfcb98173037eff40d9593d6f920f4 100644 (file)
@@ -80,7 +80,7 @@ fr_heap_t *_fr_heap_alloc(TALLOC_CTX *ctx, fr_heap_cmp_t cmp, char const *type,
         *      that the data isn't currently inserted
         *      into the heap.
         */
-       hp->p[0] = UINTPTR_MAX;
+       hp->p[0] = (void *)UINTPTR_MAX;
 
        hp->type = type;
        hp->cmp = cmp;