From 1ca73da1cf180f39204df9179d44e5a0baf620ec Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Tue, 6 Feb 2018 09:33:49 +0100 Subject: [PATCH] Fixed 'increases required alignment of target type' compilation error --- src/c-wrapper/api/c-call-stats.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/c-wrapper/api/c-call-stats.cpp b/src/c-wrapper/api/c-call-stats.cpp index 1f2baa38f..0b207c528 100644 --- a/src/c-wrapper/api/c-call-stats.cpp +++ b/src/c-wrapper/api/c-call-stats.cpp @@ -165,7 +165,8 @@ bool_t _linphone_call_stats_rtcp_received_via_mux (const LinphoneCallStats *stat // ============================================================================= LinphoneCallStats *linphone_call_stats_ref (LinphoneCallStats* stats) { - return reinterpret_cast(belle_sip_object_ref(stats)); + belle_sip_object_ref(stats); + return stats; } void linphone_call_stats_unref (LinphoneCallStats* stats) {