summaryrefslogtreecommitdiffhomepage
path: root/include/stc/forward.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-07-31 16:11:54 +0200
committerTyge Løvset <[email protected]>2022-07-31 16:14:38 +0200
commit8884747775e922e20b0646eeb29ce8a2b4a1c7cc (patch)
treec2b5aad085198dec951f67ecb1629a4d61a7b0f8 /include/stc/forward.h
parentbc3f6613ba44adcecacbdd106c840e8b6c054e22 (diff)
downloadSTC-modified-8884747775e922e20b0646eeb29ce8a2b4a1c7cc.tar.gz
STC-modified-8884747775e922e20b0646eeb29ce8a2b4a1c7cc.zip
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.
Diffstat (limited to 'include/stc/forward.h')
-rw-r--r--include/stc/forward.h2
1 files changed, 1 insertions, 1 deletions
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