Cast src to const when using memcpy
This commit is contained in:
		| @@ -329,8 +329,8 @@ internal void copy_event_data(const ESInternal *src, ESInternal *dst) { | |||||||
|     ev_dst->count      = ev_src->count; |     ev_dst->count      = ev_src->count; | ||||||
|     ev_dst->free_count = ev_src->free_count; |     ev_dst->free_count = ev_src->free_count; | ||||||
|  |  | ||||||
|     memcpy((void *)(ev_dst->free), (void *)(ev_src->free), FREE_CB_ARR_SIZE(ev_src->capacity)); |     memcpy((void *)(ev_dst->free), (const void *)(ev_src->free), FREE_CB_ARR_SIZE(ev_src->capacity)); | ||||||
|     memcpy((void *)(ev_dst->callbacks), (void *)(ev_src->callbacks), CB_ARR_SIZE(ev_src->capacity)); |     memcpy((void *)(ev_dst->callbacks), (const void *)(ev_src->callbacks), CB_ARR_SIZE(ev_src->capacity)); | ||||||
|   } |   } | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user