Skip to content

Commit

Permalink
Merge pull request #52 from acsaeed/fix-implicit-conversion
Browse files Browse the repository at this point in the history
Explicitly downcast in emboss_text_util.h
  • Loading branch information
reventlov authored Aug 23, 2022
2 parents fea80b7 + 6e10d1b commit a761f62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/cpp/emboss_text_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class TextOutputOptions final {

TextOutputOptions WithNumericBase(int new_value) const {
TextOutputOptions result = *this;
result.numeric_base_ = new_value;
result.numeric_base_ = static_cast</**/ ::std::uint8_t>(new_value);
return result;
}

Expand Down

0 comments on commit a761f62

Please sign in to comment.