summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTyge <[email protected]>2020-04-23 22:53:10 +0200
committerTyge <[email protected]>2020-04-23 22:53:10 +0200
commit902b45a47dc7dd7d0662dc0981450e70f5205e27 (patch)
treef8c50b7c78fa348e2b6714f227c25fa53fd54d1e
parent94c816fbed2882f7dc0127f05f4ee74ffdccc21b (diff)
downloadSTC-modified-902b45a47dc7dd7d0662dc0981450e70f5205e27.tar.gz
STC-modified-902b45a47dc7dd7d0662dc0981450e70f5205e27.zip
Removes Warning for C99 usage in VS when compiled as C++.
-rw-r--r--stc/cmap.h2
1 files changed, 1 insertions, 1 deletions
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 \