Skip to content

Commit

Permalink
Compile error in SingleBuffer for min()
Browse files Browse the repository at this point in the history
  • Loading branch information
pschatzmann committed Sep 12, 2023
1 parent 900f5e9 commit 2fe01e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AudioTools/Buffers.h
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ class SingleBuffer : public BaseBuffer<T> {
/// If we load values directly into the address we need to set the avialeble
/// size
size_t setAvailable(size_t available_size) {
size_t result = min(available_size, max_size);
size_t result = min(available_size, (size_t) max_size);
current_read_pos = 0;
current_write_pos = result;
return result;
Expand Down

0 comments on commit 2fe01e7

Please sign in to comment.