Skip to content

Commit

Permalink
fix(compression): add missing const keyword
Browse files Browse the repository at this point in the history
nfrechette committed Oct 24, 2023
1 parent 499983c commit 829f11f
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion includes/acl/compression/impl/write_track_data_impl.h
Original file line number Diff line number Diff line change
@@ -47,7 +47,7 @@ namespace acl
{
ACL_ASSERT(context.is_valid(), "Invalid context");

uint8_t* output_buffer = bit_cast<uint8_t*>(per_track_metadata);
const uint8_t* output_buffer = bit_cast<uint8_t*>(per_track_metadata);
const uint8_t* output_buffer_start = output_buffer;

for (uint32_t output_index = 0; output_index < context.num_output_tracks; ++output_index)
4 changes: 2 additions & 2 deletions includes/acl/compression/impl/write_track_metadata.h
Original file line number Diff line number Diff line change
@@ -47,7 +47,7 @@ namespace acl
{
ACL_ASSERT(out_track_list_name == nullptr || out_track_list_name[0] == 0, "Buffer overrun detected");

uint8_t* output_buffer = bit_cast<uint8_t*>(out_track_list_name);
const uint8_t* output_buffer = bit_cast<uint8_t*>(out_track_list_name);
const uint8_t* output_buffer_start = output_buffer;

const string& name = tracks.get_name();
@@ -121,7 +121,7 @@ namespace acl
return k_invalid_track_index;
};

uint8_t* output_buffer = bit_cast<uint8_t*>(out_parent_track_indices);
const uint8_t* output_buffer = bit_cast<uint8_t*>(out_parent_track_indices);
const uint8_t* output_buffer_start = output_buffer;

for (uint32_t output_index = 0; output_index < num_output_tracks; ++output_index)

0 comments on commit 829f11f

Please sign in to comment.