From 11bf5e4691e1a7e396e15106a1eb6e605172a7e4 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Wed, 1 May 2024 23:08:29 +0200 Subject: [PATCH] Fix C++ compatibility and compound literals... --- m-dict.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/m-dict.h b/m-dict.h index c2b767ec..34aec506 100644 --- a/m-dict.h +++ b/m-dict.h @@ -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); \ } \ } \ } \