diff --git a/src/sjpegi.h b/src/sjpegi.h index bf3cf14..a2dbe21 100644 --- a/src/sjpegi.h +++ b/src/sjpegi.h @@ -372,7 +372,7 @@ struct Encoder { int DCs_[3]; // DC predictors // DCT coefficients storage, aligned - static const size_t ALIGN_CST = 15; + static constexpr size_t ALIGN_CST = 15; uint8_t* in_blocks_base_; // base memory for blocks int16_t* in_blocks_; // aligned pointer to in_blocks_base_ bool have_coeffs_; // true if the Fourier coefficients are stored