summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2015-04-14 21:17:54 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2015-04-14 21:18:35 +0200
commitd9eb7ca95c1ca3d3efbc019f9e993b2347068f0d (patch)
tree7dea47a0d4291c9a8c7eddb33934001ab09a0aa3
parentKernel: Use the correct format string for u64 hex. (diff)
downloadyuzu-d9eb7ca95c1ca3d3efbc019f9e993b2347068f0d.tar
yuzu-d9eb7ca95c1ca3d3efbc019f9e993b2347068f0d.tar.gz
yuzu-d9eb7ca95c1ca3d3efbc019f9e993b2347068f0d.tar.bz2
yuzu-d9eb7ca95c1ca3d3efbc019f9e993b2347068f0d.tar.lz
yuzu-d9eb7ca95c1ca3d3efbc019f9e993b2347068f0d.tar.xz
yuzu-d9eb7ca95c1ca3d3efbc019f9e993b2347068f0d.tar.zst
yuzu-d9eb7ca95c1ca3d3efbc019f9e993b2347068f0d.zip
-rw-r--r--src/citra_qt/util/spinbox.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/citra_qt/util/spinbox.cpp b/src/citra_qt/util/spinbox.cpp
index 2e2076a27..de4060116 100644
--- a/src/citra_qt/util/spinbox.cpp
+++ b/src/citra_qt/util/spinbox.cpp
@@ -29,6 +29,7 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#include <cstdlib>
#include <QLineEdit>
#include <QRegExpValidator>
@@ -206,7 +207,7 @@ QString CSpinBox::TextFromValue()
{
return prefix
+ QString(HasSign() ? ((value < 0) ? "-" : "+") : "")
- + QString("%1").arg(abs(value), num_digits, base, QLatin1Char('0')).toUpper()
+ + QString("%1").arg(std::abs(value), num_digits, base, QLatin1Char('0')).toUpper()
+ suffix;
}