diff options
author | Mathieu Arnold <mat@FreeBSD.org> | 2016-07-26 16:51:15 +0000 |
---|---|---|
committer | Mathieu Arnold <mat@FreeBSD.org> | 2016-07-26 16:51:15 +0000 |
commit | 9fa9eb9ac7bf1d3de825ee25a8f0ae81b7b77896 (patch) | |
tree | 9b071a8105704e992946dcd6b801e9fcb7635142 /audio/calf/files/patch-src_giface.cpp | |
parent | MooseFS is a Fault tolerant, High Available, Highly Performing, Scale-Out, (diff) |
Cleanup patches, a* categories.
Rename them to follow the make makepatch naming, and regenerate them.
With hat: portmgr
Sponsored by: Absolight
Diffstat (limited to 'audio/calf/files/patch-src_giface.cpp')
-rw-r--r-- | audio/calf/files/patch-src_giface.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/audio/calf/files/patch-src_giface.cpp b/audio/calf/files/patch-src_giface.cpp new file mode 100644 index 000000000000..eecf206026f8 --- /dev/null +++ b/audio/calf/files/patch-src_giface.cpp @@ -0,0 +1,11 @@ +--- src/giface.cpp.orig 2015-01-24 17:21:09 UTC ++++ src/giface.cpp +@@ -173,7 +173,7 @@ std::string human_readable(float value, + } + double val = abs(value); + int place = (int)(log(val) / log(base)); +- double num = val / pow(base, place); ++ double num = val / pow((double)base, place); + sprintf(buf, format, (float)((value > 0) - (value < 0)) * num, suf[place]); + return string(buf); + } |