freebsd-ports/comms/svxlink/files/patch-locationinfo_LocationInfo.cpp
Stephen Hurd 7d6f65abc1 Update to 14.08
Switch to cmake
Switch to github
Add the STATIC, DOCS, ALSA, and OSS options
Make a master port so comms/qtel can be a slave port
2015-01-07 12:12:22 +00:00

11 lines
431 B
C++

--- src/locationinfo/LocationInfo.cpp.orig 2014-04-09 23:26:23.000000000 -0700
+++ src/locationinfo/LocationInfo.cpp 2014-04-09 23:26:32.000000000 -0700
@@ -480,7 +480,7 @@
}
double tmp = sqrt(2.0 * loc_cfg.height * sqrt((loc_cfg.power / 10.0) *
- pow10(loc_cfg.gain / 10.0) / 2)) * range_factor;
+ pow(10, loc_cfg.gain / 10.0) / 2)) * range_factor;
return lrintf(tmp);