Travis Cross 65e678ba1d Fix mod_expr clamp function
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
2014-12-25 10:18:31 +00:00
2014-12-18 15:47:48 -06:00
2014-03-24 12:39:59 +00:00
2014-11-18 15:42:44 -05:00
2014-12-24 10:37:34 -06:00
2014-02-12 12:08:56 -06:00
2014-12-15 16:47:14 -06:00
2014-11-07 07:26:34 -06:00
2014-12-25 10:18:31 +00:00
2014-12-18 19:30:44 -06:00
2014-07-19 18:06:01 +02:00
2010-04-01 21:00:45 -04:00
2014-09-12 08:59:11 -05:00
2014-08-01 14:47:38 -05:00
2013-09-16 22:59:26 +05:00
2013-09-16 22:59:26 +05:00
2009-11-18 19:42:00 +00:00
2014-01-17 16:17:57 -06:00
2013-04-04 20:52:47 -05:00
2013-12-23 22:43:06 +05:00
Description
FreeSWITCH is a Software Defined Telecom Stack enabling the digital transformation from proprietary telecom switches to a versatile software implementation that runs on any commodity hardware. From a Raspberry PI to a multi-core server, FreeSWITCH can unl
Multiple Licenses 196 MiB
Languages
C 65.2%
C++ 20.8%
JavaScript 4.8%
Assembly 2%
Makefile 1%
Other 5.4%