]> git.seodisparate.com - c_simple_http/commitdiff
backport: StringPart's extra type to uintptr_t
authorStephen Seo <seo.disparate@gmail.com>
Wed, 25 Sep 2024 04:14:01 +0000 (13:14 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Wed, 25 Sep 2024 04:18:06 +0000 (13:18 +0900)
src/helpers.h

index 4a638341915a0be2e7b8ad6555fa87a62d9178c2..137bf06076197575527caf1fd866085047724242 100644 (file)
@@ -19,6 +19,7 @@
 
 // Standard library includes.
 #include <stddef.h>
+#include <stdint.h>
 
 // Third-party includes.
 #include <SimpleArchiver/src/data_structures/linked_list.h>
@@ -26,7 +27,7 @@
 typedef struct C_SIMPLE_HTTP_String_Part {
   char *buf;
   size_t size;
-  size_t extra;
+  uintptr_t extra;
 } C_SIMPLE_HTTP_String_Part;
 
 void c_simple_http_cleanup_attr_string_part(C_SIMPLE_HTTP_String_Part **);