opnsense-ports/comms/jsdr/files/patch-utilities_decimator.cpp
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

13 lines
506 B
C++

--- utilities/decimator.cpp.orig
+++ utilities/decimator.cpp
@@ -67,8 +67,8 @@ bool downDecimator::doDecimate (DSPFLOAT
*/
this -> inSamplerate = inSamplerate;
this -> outSamplerate = outSamplerate;
- inperiod = (int64_t)(100000000000) / inSamplerate;
- outperiod = (int64_t)(100000000000) / outSamplerate;
+ inperiod = (int64_t)(100000000000LL) / inSamplerate;
+ outperiod = (int64_t)(100000000000LL) / outSamplerate;
oldinsampleTime = 0;
currentinsampleTime = 0;
oldinsampleValue = 0;