summaryrefslogtreecommitdiff
path: root/externals/microprofile/microprofileui.h
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2016-03-27 12:01:29 +0800
committerSam Spilsbury <smspillaz@gmail.com>2016-04-23 11:48:58 +0800
commitaacc3a4a59a9a66c3768c8cbba0ab4c03a4e5920 (patch)
treee4c114279e7ee0db5e83287b762cd8b05e578773 /externals/microprofile/microprofileui.h
parentd051bd303225838e0e50a3e3ddc22337c1fc0f0c (diff)
microprofile: Use std::abs
Using the global-namespace C function will cause the wrong overload to get picked
Diffstat (limited to 'externals/microprofile/microprofileui.h')
-rw-r--r--externals/microprofile/microprofileui.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/externals/microprofile/microprofileui.h b/externals/microprofile/microprofileui.h
index eac1119a42..cc12739cbd 100644
--- a/externals/microprofile/microprofileui.h
+++ b/externals/microprofile/microprofileui.h
@@ -879,7 +879,7 @@ void MicroProfileDrawDetailedBars(uint32_t nWidth, uint32_t nHeight, int nBaseY,
static int64_t nRefCpu = 0, nRefGpu = 0;
if(MicroProfileGetGpuTickReference(&nTickReferenceCpu, &nTickReferenceGpu))
{
- if(0 == nRefCpu || abs(nRefCpu-nBaseTicksCpu) > abs(nTickReferenceCpu-nBaseTicksCpu))
+ if(0 == nRefCpu || std::abs(nRefCpu-nBaseTicksCpu) > std::abs(nTickReferenceCpu-nBaseTicksCpu))
{
nRefCpu = nTickReferenceCpu;
nRefGpu = nTickReferenceGpu;