diff options
Diffstat (limited to 'libgamma_internal_translated_ramp_set_.c')
-rw-r--r-- | libgamma_internal_translated_ramp_set_.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |