C++ compatibility
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@92 59561ff5-6e30-0410-9f3c-9617f08c8826
diff --git a/skeletons/asn_SET_OF.c b/skeletons/asn_SET_OF.c
index d89b357..c6afc30 100644
--- a/skeletons/asn_SET_OF.c
+++ b/skeletons/asn_SET_OF.c
@@ -13,7 +13,7 @@
*/
int
asn_set_add(void *asn_set_of_x, void *ptr) {
- asn_set *as = asn_set_of_x;
+ asn_set *as = (asn_set *)asn_set_of_x;
if(as == 0 || ptr == 0) {
errno = EINVAL; /* Invalid arguments */
@@ -28,7 +28,7 @@
void *_new_arr;
_new_arr = REALLOC(as->array, _newsize * sizeof(as->array[0]));
if(_new_arr) {
- as->array = _new_arr;
+ as->array = (void **)_new_arr;
as->size = _newsize;
} else {
/* ENOMEM */
@@ -43,7 +43,7 @@
void
asn_set_del(void *asn_set_of_x, int number, int _do_free) {
- asn_set *as = asn_set_of_x;
+ asn_set *as = (asn_set *)asn_set_of_x;
if(as) {
void *ptr;
@@ -71,7 +71,7 @@
*/
void
asn_set_empty(void *asn_set_of_x) {
- asn_set *as = asn_set_of_x;
+ asn_set *as = (asn_set *)asn_set_of_x;
if(as) {
if(as->array) {