• Travis Cross's avatar
    Fix mod_expr `clamp` function · 65e678ba
    Travis Cross 提交于
    The clamp(v,a,b) function wraps v around the interval [a,b).
    
    However prior to this commit, `clamp` was ignoring the third argument
    and using the second argument again in its place.  This resulted in a
    division by zero.  Hence `clamp` didn't work at all.
    
    Even if the arguments were treated correctly, `clamp` incorrectly
    multiplied rather than added whenever v < a.  This would have produced
    bogus results.  (Thanks to Shona McNeill for pointing this out.)
    
    Note that as implemented, `clamp` is undefined for b >= a.
    
    These errors are present in the last upstream C version, v2.7.
    They've been corrected in the C++ version that upstream now maintains
    instead.
    
    Thanks-to: Shona McNeill <prufrax@googlemail.com>
    
    FS-7070 #resolve
    65e678ba
名称
最后提交
最后更新
..
applications 正在载入提交数据...
asr_tts 正在载入提交数据...
codecs 正在载入提交数据...
dialplans 正在载入提交数据...
directories/mod_ldap 正在载入提交数据...
endpoints 正在载入提交数据...
event_handlers 正在载入提交数据...
formats 正在载入提交数据...
languages 正在载入提交数据...
legacy/languages/mod_lua 正在载入提交数据...
loggers 正在载入提交数据...
say 正在载入提交数据...
sdk/autotools 正在载入提交数据...
timers 正在载入提交数据...
xml_int 正在载入提交数据...
.gitignore 正在载入提交数据...
Makefile.am 正在载入提交数据...