Commit 74f19859 authored by marko's avatar marko

branches/zip: HASH_INSERT, HASH_DELETE: Add explicit type conversions,

so that the macros will expand to valid C++.  Unlike C++, C allows
implicit type conversions from void* to other pointer types.
parent 6a56406c
......@@ -94,7 +94,7 @@ do {\
\
while (struct3333->NAME != NULL) {\
\
struct3333 = struct3333->NAME;\
struct3333 = (TYPE*) struct3333->NAME;\
}\
\
struct3333->NAME = DATA;\
......@@ -125,11 +125,11 @@ do {\
HASH_ASSERT_VALID(DATA->NAME);\
cell3333->node = DATA->NAME;\
} else {\
struct3333 = cell3333->node;\
struct3333 = (TYPE*) cell3333->node;\
\
while (struct3333->NAME != DATA) {\
\
struct3333 = struct3333->NAME;\
struct3333 = (TYPE*) struct3333->NAME;\
ut_a(struct3333);\
}\
\
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment