Skip to content

Commit

Permalink
Fixed errors in various distro builds due to implicit data conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
Hrick87 committed Dec 16, 2023
1 parent 104a641 commit a6d2098
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion scripts/ci_checks/linux-checks/pulseaudio-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ do
--enable-werror \
--enable-tests \
--enable-examples \
--build-3rdparty=openfec,pulseaudio:$pulse_ver \
--build-3rdparty=openfec,pulseaudio:$pulse_ver,sndfile \
test
done
2 changes: 1 addition & 1 deletion scripts/ci_checks/macos/standard-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -euxo pipefail
brew install \
automake scons ragel gengetopt \
libuv speexdsp sox openssl@3 \
cpputest google-benchmark sndfile
cpputest google-benchmark libsndfile

# debug build
scons -Q \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -339,14 +339,14 @@ bool SndfileSource::seek_(size_t offset) {
roc_panic("sndfile source: seek: not a file");
}

roc_log(LogDebug, "sndfile source: resetting position to %ld", offset);
roc_log(LogDebug, "sndfile source: resetting position to %lu", (unsigned long)offset);

sf_count_t err = sf_seek(sndfile_input_, (sf_count_t)offset, SEEK_SET);
if (err == -1) {
roc_log(LogError,
"sndfile source: can't reset position to %ld: an attempt was made to "
"sndfile source: can't reset position to %lu: an attempt was made to "
"seek beyond the start or end of the file",
offset);
(unsigned long)offset);
return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/

//! @file roc_sndio/target_sndfile/roc_sndio/sndfile_source.h
//! @brief SoX source.
//! @brief Sndfile source.

#ifndef ROC_SNDIO_SNDFILE_SOURCE_H_
#define ROC_SNDIO_SNDFILE_SOURCE_H_
Expand Down
1 change: 1 addition & 0 deletions src/tests/roc_sndio/test_pump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include "roc_core/stddefs.h"
#include "roc_core/temp_file.h"
#include "roc_sndio/pump.h"
#include "roc_sndio/config.h"
#ifdef ROC_TARGET_SOX
#include "roc_sndio/sox_sink.h"
#include "roc_sndio/sox_source.h"
Expand Down

0 comments on commit a6d2098

Please sign in to comment.