Fix C++ compatibility and compound literals...

This commit is contained in:
Patrick Pelissier committed 2024-05-01 23:08:29 +02:00
1 parent cf0d82a706
commit 11bf5e4691
1 file changed
+4 -2
+4 -2
View File
@@ -465,7 +465,8 @@ ARRAY_DEF(m_array_index, m_indexhash_t, M_POD_OPLIST)
h->index[p].index = ind; \
h->index[p].hash = hash; \
} else { \
m_array_index_push_back(tmp, (m_indexhash_t) {ind, hash}); \
m_indexhash_t t = { ind, hash }; \
m_array_index_push_back(tmp, t); \
} \
} \
} \
@@ -518,7 +519,8 @@ ARRAY_DEF(m_array_index, m_indexhash_t, M_POD_OPLIST)
h->index[p].index = ind; \
h->index[p].hash = hash; \
} else { \
m_array_index_push_back(tmp, (m_indexhash_t) {ind, hash}); \
m_indexhash_t t = { ind, hash }; \
m_array_index_push_back(tmp, t); \
} \
} \
} \