Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tamasmeszaros committed Oct 19, 2023
1 parent cbd61d6 commit d485f7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LibBGCode/convert/convert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ BGCODE_CONVERT_EXPORT EResult from_ascii_to_binary(FILE& src_file, FILE& dst_fil
}
ThumbnailBlock& thumbnail = binary_data.thumbnails.back();
auto sv_line_bytes = reinterpret_cast<const std::byte*>(sv_line.data());
std::copy(sv_line_bytes, sv_line_bytes + sv_line.size(), std::back_inserter(thumbnail.data));
thumbnail.data.insert(thumbnail.data.begin() + curr_thumbnail_data_loaded, sv_line_bytes, sv_line_bytes + sv_line.size());
curr_thumbnail_data_loaded += sv_line.size();
processed_lines.emplace_back(lines_counter++);
return;
Expand Down

0 comments on commit d485f7d

Please sign in to comment.