Skip to content

Commit

Permalink
Replace char type without modifier with int8_t type
Browse files Browse the repository at this point in the history
  • Loading branch information
SpriteOvO committed May 24, 2022
1 parent c49fd66 commit 791d2e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/librawspeed/decompressors/FujiDecompressor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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]) {
Expand Down
2 changes: 1 addition & 1 deletion src/librawspeed/decompressors/FujiDecompressor.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class FujiDecompressor final : public AbstractDecompressor {

explicit fuji_compressed_params(const FujiDecompressor& d);

std::vector<char> q_table; /* quantization table */
std::vector<int8_t> q_table; /* quantization table */
std::array<int, 5> q_point; /* quantization points */
int max_bits;
int min_value;
Expand Down

0 comments on commit 791d2e0

Please sign in to comment.