[util] Make cmem.h more portable

32-bit size_t doesn't like 64-bit bit-fields. More testing needed to see
if cmem works properly (mostly alignment) on 32-bit system.
This commit is contained in:
Bill Currie 2021-04-02 08:46:48 +09:00
parent 2d67bcacd7
commit c9f9c1e36b

View file

@ -54,7 +54,7 @@ typedef struct memsline_s {
struct memsline_s *next; struct memsline_s *next;
size_t size:2; size_t size:2;
size_t list:4; size_t list:4;
size_t prev:58; // memsline_t ** size_t prev:8 * sizeof (void *) - 6; // memsline_t **
} memsline_t; } memsline_t;
typedef struct memblock_s { typedef struct memblock_s {