Skip to content

Commit

Permalink
build: Fix build on GCC
Browse files Browse the repository at this point in the history
  • Loading branch information
gavv committed Aug 13, 2024
1 parent 4385ea3 commit 7c7bcbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ OpenfecDecoder::OpenfecDecoder(const CodecConfig& config,

of_sess_params_ = (of_parameters_t*)&codec_params_.rs_params_;

max_block_length_ = (1 << config.rs_m) - 1;
max_block_length_ = size_t(1 << config.rs_m) - 1;
} break;
#endif // OF_USE_REED_SOLOMON_2_M_CODEC

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ OpenfecEncoder::OpenfecEncoder(const CodecConfig& config,

of_sess_params_ = (of_parameters_t*)&codec_params_.rs_params_;

max_block_length_ = (1 << config.rs_m) - 1;
max_block_length_ = size_t(1 << config.rs_m) - 1;
} break;
#endif // OF_USE_REED_SOLOMON_2_M_CODEC

Expand Down

0 comments on commit 7c7bcbd

Please sign in to comment.