correct typo
This commit is contained in:
@@ -49,7 +49,7 @@ void PrintCompressionPiece(const std::shared_ptr<CompressionPiece>& piece) {
|
|||||||
printf("Command : %d\n", piece->command);
|
printf("Command : %d\n", piece->command);
|
||||||
printf("length : %d\n", piece->length);
|
printf("length : %d\n", piece->length);
|
||||||
printf("Argument :");
|
printf("Argument :");
|
||||||
auto arg_size = piece->arguments.size();
|
auto arg_size = piece->argument.size();
|
||||||
for (int i = 0; i < arg_size; ++i) {
|
for (int i = 0; i < arg_size; ++i) {
|
||||||
printf("%02X ", piece->argument.at(i));
|
printf("%02X ", piece->argument.at(i));
|
||||||
}
|
}
|
||||||
@@ -144,8 +144,7 @@ Bytes CreateCompressionString(std::shared_ptr<CompressionPiece>& start,
|
|||||||
Bytes output;
|
Bytes output;
|
||||||
|
|
||||||
while (piece != nullptr) {
|
while (piece != nullptr) {
|
||||||
// Normal header
|
if (piece->length <= kMaxLengthNormalHeader) { // Normal header
|
||||||
if (piece->length <= kMaxLengthNormalHeader) {
|
|
||||||
output.push_back(BUILD_HEADER(piece->command, piece->length));
|
output.push_back(BUILD_HEADER(piece->command, piece->length));
|
||||||
pos++;
|
pos++;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user