diff --git a/ionc/ion_allocation.c b/ionc/ion_allocation.c index f92d430..477261a 100644 --- a/ionc/ion_allocation.c +++ b/ionc/ion_allocation.c @@ -92,7 +92,7 @@ iERR _ion_strdup(hOWNER owner, iSTRING dst, iSTRING src) dst->value = (BYTE *)ion_alloc_with_owner(owner, (is_empty) ? 1 : src->length); if (!dst->value) FAILWITH(IERR_NO_MEMORY); } - memcpy(dst->value, (is_empty) ? "\0" : src->value, (is_empty) ? 1 : src->length); + memcpy(dst->value, (is_empty) ? (BYTE*)"\0" : src->value, (is_empty) ? 1 : src->length); dst->length = src->length; diff --git a/ionc/ion_internal.h b/ionc/ion_internal.h index 9ff5eed..148e672 100644 --- a/ionc/ion_internal.h +++ b/ionc/ion_internal.h @@ -109,7 +109,7 @@ GLOBAL BOOL _debug_on INITTO(TRUE); (xb) = (*(xh)->_curr++); \ } \ else { \ - IONCHECK(ion_stream_read_byte((xh), &(xb))); \ + IONCHECK(ion_stream_read_byte((xh), (int *)&(xb))); \ } while(FALSE) // macro for read_byte