From baa6a1cf7979c095c1081daa2a2d1134c76d2f1b Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 7 Mar 2021 22:51:21 +0100 Subject: misc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libgamma_internal_translated_ramp_set_.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libgamma_internal_translated_ramp_set_.c') diff --git a/libgamma_internal_translated_ramp_set_.c b/libgamma_internal_translated_ramp_set_.c index 8099346..f249e54 100644 --- a/libgamma_internal_translated_ramp_set_.c +++ b/libgamma_internal_translated_ramp_set_.c @@ -24,12 +24,12 @@ * error identifier provided by this library */ int -libgamma_internal_translated_ramp_set_(libgamma_crtc_state_t *restrict this, const gamma_ramps_any_t *restrict ramps, +libgamma_internal_translated_ramp_set_(struct libgamma_crtc_state *restrict this, const union gamma_ramps_any *restrict ramps, signed depth_user, signed depth_system, set_ramps_any_fun *fun) { size_t n; int r; - gamma_ramps_any_t ramps_sys; + union gamma_ramps_any ramps_sys; uint64_t *restrict ramps_full; /* Allocate ramps with proper data type */ @@ -37,7 +37,7 @@ libgamma_internal_translated_ramp_set_(libgamma_crtc_state_t *restrict this, con return r; /* Allocate intermediary ramps */ - ramps_full = malloc(n * sizeof(uint64_t)); + ramps_full = malloc(n * sizeof(*ramps_full)); if (!ramps_full) { free(ramps_sys.ANY.red); return LIBGAMMA_ERRNO_SET; -- cgit v1.2.3-70-g09d2