Skip to content

Commit

Permalink
Fix data compression mode page size
Browse files Browse the repository at this point in the history
  • Loading branch information
uweseimet committed Oct 27, 2024
1 parent 839196d commit 793760e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cpp/devices/tape.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ void Tape::AddModeBlockDescriptor(map<int, vector<byte>> &pages) const

void Tape::AddDataCompressionPage(map<int, vector<byte>> &pages) const
{
vector<byte> buf(14);
vector<byte> buf(16);

pages[15] = buf;
}
Expand Down
2 changes: 1 addition & 1 deletion cpp/test/tape_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ static void ValidateModePages(map<int, vector<byte>> &pages)
EXPECT_EQ(12U, pages[1].size());
EXPECT_EQ(16U, pages[2].size());
EXPECT_EQ(8U, pages[10].size());
EXPECT_EQ(14U, pages[15].size());
EXPECT_EQ(16U, pages[15].size());
EXPECT_EQ(16U, pages[16].size());
EXPECT_EQ(10U, pages[17].size());
}
Expand Down

0 comments on commit 793760e

Please sign in to comment.