Skip to content

Commit

Permalink
Using ull or ul does not work on all platforms because of different d…
Browse files Browse the repository at this point in the history
…efinitions of uint64_t.
  • Loading branch information
ChristianFeldmann committed Mar 20, 2024
1 parent 4b61b84 commit afa3bff
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ SEIParsingResult three_dimensional_reference_displays_info::parse(

const auto refDispWidthBits =
this->exponent_ref_display_width.at(i) == 0
? std::max(0UL, this->prec_ref_display_width - 30)
: std::max(0UL,
? std::max(uint64_t(0), this->prec_ref_display_width - 30)
: std::max(uint64_t(0),
this->exponent_ref_display_width.at(i) + this->prec_ref_display_width - 31);
this->mantissa_ref_display_width.push_back(
reader.readBits(formatArray("mantissa_ref_display_width", i), refDispWidthBits));
Expand All @@ -79,8 +79,8 @@ SEIParsingResult three_dimensional_reference_displays_info::parse(
reader.readBits(formatArray("exponent_ref_viewing_distance", i), 6));

const auto refViewDistBits = exponent_ref_viewing_distance.at(i) == 0
? std::max(0UL, this->prec_ref_viewing_dist - 30)
: std::max(0UL,
? std::max(uint64_t(0), this->prec_ref_viewing_dist - 30)
: std::max(uint64_t(0),
this->exponent_ref_viewing_distance.at(i) +
this->prec_ref_viewing_dist - 31);
this->mantissa_ref_viewing_distance.push_back(
Expand Down

0 comments on commit afa3bff

Please sign in to comment.