mirror of
https://git.freebsd.org/ports.git
synced 2025-07-16 16:59:17 -04:00
Rename them to follow the make makepatch naming, and regenerate them. With hat: portmgr Sponsored by: Absolight
11 lines
412 B
C++
11 lines
412 B
C++
--- 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);
|
|
}
|