Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/alexmarsev/soxr.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRob Sykes <rob@rob-Ideapad-S205.(none)>2013-01-18 12:08:30 +0400
committerRob Sykes <rob@rob-Ideapad-S205.(none)>2013-01-18 12:08:30 +0400
commit7ad0e604af253bc31803b092ed38df63529fe300 (patch)
tree7025efb6e9d6ab160a2a6ac8ae4641d8aba61723 /src
parenta7c64526018fc1b4d003924b4353dd2e396c1f49 (diff)
fix incorrect src_error report on 64-bit arch
Diffstat (limited to 'src')
-rw-r--r--src/lsr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lsr.c b/src/lsr.c
index 4dcd6a8..fafefbc 100644
--- a/src/lsr.c
+++ b/src/lsr.c
@@ -104,7 +104,7 @@ static char const * const names[] = {"LSR best sinc", "LSR medium sinc", "LSR fa
char const * src_get_name(unsigned n) {return n < 5u + !getenv("SOXR_LSR_STRICT")? names[n] : 0;}
char const * src_get_description(unsigned id) {return src_get_name(id);}
char const * src_get_version(void) {return soxr_version();}
-char const * src_strerror(soxr_error_t error) {return error == (soxr_error_t)1? "Placeholder." : sizeof(int) >= sizeof(char *)? soxr_strerror(error) : "error";}
+char const * src_strerror(soxr_error_t error) {return error == (soxr_error_t)1? "Placeholder." : sizeof(int) >= sizeof(char *) || !error ? soxr_strerror(error) : "soxr error";}
int src_is_valid_ratio(double oi_ratio) {return getenv("SOXR_LSR_STRICT")? oi_ratio >= 1./256 && oi_ratio <= 256 : oi_ratio > 0;}
soxr_error_t src_error(soxr_t p) {return soxr_error(p);}
soxr_error_t src_reset(soxr_t p) {return soxr_clear(p);}