diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-05-31 05:55:13 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-05-31 05:55:13 +0200 |
commit | 17b5bff144d3e40d1ca610660d77b1b43fc17bb2 (patch) | |
tree | 9467fdec4da74846a31ca439fd343d7adb2ae84d | |
parent | m translate_from_64 (diff) | |
download | libgamma-17b5bff144d3e40d1ca610660d77b1b43fc17bb2.tar.gz libgamma-17b5bff144d3e40d1ca610660d77b1b43fc17bb2.tar.bz2 libgamma-17b5bff144d3e40d1ca610660d77b1b43fc17bb2.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r-- | src/gamma-helper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gamma-helper.c b/src/gamma-helper.c index 5c538e7..dd4e027 100644 --- a/src/gamma-helper.c +++ b/src/gamma-helper.c @@ -89,12 +89,12 @@ static void translate_from_64(signed depth, size_t n, libgamma_gamma_ramps_any_t { case 16: for (i = 0; i < n; i++) - out.bits16.red[i] = (uint64_t)(in[i] / 0x0001000100010001ULL); + out.bits16.red[i] = (uint16_t)(in[i] / 0x0001000100010001ULL); break; case 32: for (i = 0; i < n; i++) - out.bits32.red[i] = (uint64_t)(in[i] / 0x0000000100000001ULL); + out.bits32.red[i] = (uint32_t)(in[i] / 0x0000000100000001ULL); break; case 64: |