From: Stephen Seo Date: Wed, 25 Sep 2024 04:28:42 +0000 (+0900) Subject: Fix type when setting "extra" var on string part X-Git-Tag: 1.0~24^2~5 X-Git-Url: https://git.seodisparate.com/stephenseo/js/bootstrap.bundle.min.js?a=commitdiff_plain;h=a017fccc2750c71953a0b72c9a7e0f67a7a67eb4;p=c_simple_http Fix type when setting "extra" var on string part --- diff --git a/src/helpers.c b/src/helpers.c index bf3a6fd..b391e22 100644 --- a/src/helpers.c +++ b/src/helpers.c @@ -76,7 +76,7 @@ void c_simple_http_cleanup_string_part(void *data) { } void c_simple_http_add_string_part( - SDArchiverLinkedList *list, const char *c_string, size_t extra) { + SDArchiverLinkedList *list, const char *c_string, uintptr_t extra) { C_SIMPLE_HTTP_String_Part *string_part = malloc(sizeof(C_SIMPLE_HTTP_String_Part)); diff --git a/src/helpers.h b/src/helpers.h index 137bf06..bd649d9 100644 --- a/src/helpers.h +++ b/src/helpers.h @@ -39,7 +39,7 @@ void c_simple_http_cleanup_string_part(void *data); /// Puts a malloced instance of String_Part into the list. /// The given c_string will be copied into a newly malloced buffer. void c_simple_http_add_string_part( - SDArchiverLinkedList *list, const char *c_string, size_t extra); + SDArchiverLinkedList *list, const char *c_string, uintptr_t extra); /// Combines all String_Parts in the list and returns it as a single buffer. char *c_simple_http_combine_string_parts(const SDArchiverLinkedList *list);