diff options
author | Rob Sykes <rob@rob-Ideapad-S205.(none)> | 2013-01-18 12:08:30 +0400 |
---|---|---|
committer | Rob Sykes <rob@rob-Ideapad-S205.(none)> | 2013-01-18 12:08:30 +0400 |
commit | 7ad0e604af253bc31803b092ed38df63529fe300 (patch) | |
tree | 7025efb6e9d6ab160a2a6ac8ae4641d8aba61723 /src | |
parent | a7c64526018fc1b4d003924b4353dd2e396c1f49 (diff) |
fix incorrect src_error report on 64-bit arch
Diffstat (limited to 'src')
-rw-r--r-- | src/lsr.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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);} |