Skip to content

Commit

Permalink
Be explicit about cast from size_t to int.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 313477267
  • Loading branch information
hzeller committed May 27, 2020
1 parent c5d31b7 commit 3968647
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/formatting/align_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ TEST_F(Sparse3x3MatrixAlignmentTest, CompletelyDisabledNoAlignment) {
[](const TokenPartitionTree&) { return false; },
pre_format_tokens_.begin(), sample_,
// Alignment disabled over entire range.
ByteOffsetSet({{0, sample_.length()}}), 40);
ByteOffsetSet({{0, static_cast<int>(sample_.length())}}), 40);

// Verify string rendering of result.
EXPECT_EQ(Render(), //
Expand Down

0 comments on commit 3968647

Please sign in to comment.