From 0f03cc378e6ce48f17a20e409f93bfc11345a6ed Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 16 May 2017 20:14:22 +0200 Subject: Fix errors and warnings and make the code cleaner MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/blind-convert.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'src/blind-convert.c') diff --git a/src/blind-convert.c b/src/blind-convert.c index 32ab2c2..e0ffc0f 100644 --- a/src/blind-convert.c +++ b/src/blind-convert.c @@ -1,9 +1,5 @@ /* See LICENSE file for copyright and license details. */ -#include "stream.h" -#include "util.h" - -#include -#include +#include "common.h" USAGE("pixel-format ...") @@ -20,10 +16,10 @@ static void (*outconv)(double *xyzas, size_t n); interm = buf;\ n = stream->ptr / stream->pixel_size;\ for (m = n; m--; in += 4, interm += 4) { \ - interm[0] = (TYPE)(in[0]);\ - interm[1] = (TYPE)(in[1]);\ - interm[2] = (TYPE)(in[2]);\ - interm[3] = (TYPE)(in[3]);\ + interm[0] = (double)(in[0]);\ + interm[1] = (double)(in[1]);\ + interm[2] = (double)(in[2]);\ + interm[3] = (double)(in[3]);\ }\ outconv(buf, n);\ n *= stream->pixel_size;\ -- cgit v1.2.3-70-g09d2