Skip to content

Commit

Permalink
Made the ViSQOL model bytes const.
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Bruse committed Apr 26, 2024
1 parent 801d813 commit 23c5e4f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion cmake/tests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ add_test(NAME zimtohrli_loudness_computation_ipynb_test
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)


add_test(NAME zimtohrli_go_test
COMMAND go test ./...
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
Expand Down
2 changes: 1 addition & 1 deletion cpp/zimt/visqol_model.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

namespace zimtohrli {

absl::Span<char> ViSQOLModel() {
absl::Span<const char> ViSQOLModel() {
return absl::Span<char>(reinterpret_cast<char*>(visqol_model_bytes),
visqol_model_bytes_len);
}
Expand Down
2 changes: 1 addition & 1 deletion cpp/zimt/visqol_model.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
namespace zimtohrli {

// Returns the bytes of the default ViSQOL model.
absl::Span<char> ViSQOLModel();
absl::Span<const char> ViSQOLModel();

} // namespace zimtohrli

Expand Down

0 comments on commit 23c5e4f

Please sign in to comment.