From 902b45a47dc7dd7d0662dc0981450e70f5205e27 Mon Sep 17 00:00:00 2001 From: Tyge Date: Thu, 23 Apr 2020 22:53:10 +0200 Subject: Removes Warning for C99 usage in VS when compiled as C++. --- stc/cmap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stc/cmap.h b/stc/cmap.h index b5accb30..02b5ee93 100644 --- a/stc/cmap.h +++ b/stc/cmap.h @@ -253,7 +253,7 @@ static inline cmap_##tag##_iter_t \ cmap_##tag##_begin(CMap_##tag* map) { \ CMapEntry_##tag* e = map->_table.data, *end = e + _cvector_capacity(map->_table); \ while (e != end && !e->hashx) ++e; \ - return (cmap_##tag##_iter_t) {e == end ? NULL : e, end}; \ + cmap_##tag##_iter_t it = {e == end ? NULL : e, end}; return it; \ } \ \ static inline cmap_##tag##_iter_t \ -- cgit v1.2.3