C++ compatibility


git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@92 59561ff5-6e30-0410-9f3c-9617f08c8826
diff --git a/skeletons/IA5String.c b/skeletons/IA5String.c
index 902de85..7fcb194 100644
--- a/skeletons/IA5String.c
+++ b/skeletons/IA5String.c
@@ -29,7 +29,7 @@
 int
 IA5String_constraint(asn1_TYPE_descriptor_t *td, const void *sptr,
 		asn_app_consume_bytes_f *app_errlog, void *app_key) {
-	const IA5String_t *st = sptr;
+	const IA5String_t *st = (const IA5String_t *)sptr;
 
 	if(st && st->buf) {
 		uint8_t *buf = st->buf;