From 8884747775e922e20b0646eeb29ce8a2b4a1c7cc Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Sun, 31 Jul 2022 16:11:54 +0200 Subject: Changed cmap struct internal rep. so that load-factor is first: useful for global initialization of maps. This changes ABI, but so far STC has no stable ABI guarantees. --- include/stc/forward.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/stc/forward.h') diff --git a/include/stc/forward.h b/include/stc/forward.h index 9c462b8e..04566b98 100644 --- a/include/stc/forward.h +++ b/include/stc/forward.h @@ -125,10 +125,10 @@ typedef union { } SELF##_iter; \ \ typedef struct { \ + float max_load_factor; \ SELF##_value* table; \ uint8_t* _hashx; \ SELF##_size_t size, bucket_count; \ - float max_load_factor; \ } SELF #if defined STC_CSMAP_V1 -- cgit v1.2.3