From 791d2e03ba50d72db443c8f30bbcf43c5f4cc14c Mon Sep 17 00:00:00 2001 From: Sprite Date: Wed, 25 May 2022 03:35:55 +0800 Subject: [PATCH] Replace `char` type without modifier with `int8_t` type --- src/librawspeed/decompressors/FujiDecompressor.cpp | 2 +- src/librawspeed/decompressors/FujiDecompressor.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librawspeed/decompressors/FujiDecompressor.cpp b/src/librawspeed/decompressors/FujiDecompressor.cpp index b92a23cb6..3fbfa08c6 100644 --- a/src/librawspeed/decompressors/FujiDecompressor.cpp +++ b/src/librawspeed/decompressors/FujiDecompressor.cpp @@ -103,7 +103,7 @@ FujiDecompressor::fuji_compressed_params::fuji_compressed_params( cur_val = -q_point[4]; q_table.resize(2 * (1 << d.header.raw_bits)); - for (char* qt = &q_table[0]; cur_val <= q_point[4]; ++qt, ++cur_val) { + for (int8_t* qt = &q_table[0]; cur_val <= q_point[4]; ++qt, ++cur_val) { if (cur_val <= -q_point[3]) { *qt = -4; } else if (cur_val <= -q_point[2]) { diff --git a/src/librawspeed/decompressors/FujiDecompressor.h b/src/librawspeed/decompressors/FujiDecompressor.h index 1cc30191a..08838dcda 100644 --- a/src/librawspeed/decompressors/FujiDecompressor.h +++ b/src/librawspeed/decompressors/FujiDecompressor.h @@ -122,7 +122,7 @@ class FujiDecompressor final : public AbstractDecompressor { explicit fuji_compressed_params(const FujiDecompressor& d); - std::vector q_table; /* quantization table */ + std::vector q_table; /* quantization table */ std::array q_point; /* quantization points */ int max_bits; int min_value;