mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-28 13:39:08 +00:00
aef569172b1b115e89dd7b09a40f8c45b22dc4b7
Clang 3.5 reported the following error: error: taking the absolute value of unsigned type 'unsigned int' has no effect [-Werror,-Wabsolute-value] Subtracting unsigned variables will never be negative and will either be the small expected value or will wrap to a very big value. This code is trying to determine if the difference between these timestamps is greater than 16000. The variables last_write_ts and this_ts deal with timestamps. In the normal case this_ts will be a larger timestamp than last_write_ts. This change will maintain the intended behavior of reseting the video if the difference is larger than 16000 and in the abnormal case this value would wrap and still exceed the 16000.
…
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 unlock the telecommunications potential of any device.
BSD-3-Clause, ISC
251 MiB
0 Stars
1 Watchers
0 Forks
Languages
C
60.3%
C++
27.2%
JavaScript
4.3%
Assembly
1.7%
Makefile
1%
Other
4.9%