diff options
| author | 2016-03-27 12:01:29 +0800 | |
|---|---|---|
| committer | 2016-04-23 11:48:58 +0800 | |
| commit | aacc3a4a59a9a66c3768c8cbba0ab4c03a4e5920 (patch) | |
| tree | e4c114279e7ee0db5e83287b762cd8b05e578773 | |
| parent | CMakeLists: Use CMAKE_THREAD_LIBS_INIT (diff) | |
| download | yuzu-aacc3a4a59a9a66c3768c8cbba0ab4c03a4e5920.tar.gz yuzu-aacc3a4a59a9a66c3768c8cbba0ab4c03a4e5920.tar.xz yuzu-aacc3a4a59a9a66c3768c8cbba0ab4c03a4e5920.zip | |
microprofile: Use std::abs
Using the global-namespace C function will cause the wrong
overload to get picked
| -rw-r--r-- | externals/microprofile/microprofileui.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/externals/microprofile/microprofileui.h b/externals/microprofile/microprofileui.h index eac1119a4..cc12739cb 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, | |||
| 879 | static int64_t nRefCpu = 0, nRefGpu = 0; | 879 | static int64_t nRefCpu = 0, nRefGpu = 0; |
| 880 | if(MicroProfileGetGpuTickReference(&nTickReferenceCpu, &nTickReferenceGpu)) | 880 | if(MicroProfileGetGpuTickReference(&nTickReferenceCpu, &nTickReferenceGpu)) |
| 881 | { | 881 | { |
| 882 | if(0 == nRefCpu || abs(nRefCpu-nBaseTicksCpu) > abs(nTickReferenceCpu-nBaseTicksCpu)) | 882 | if(0 == nRefCpu || std::abs(nRefCpu-nBaseTicksCpu) > std::abs(nTickReferenceCpu-nBaseTicksCpu)) |
| 883 | { | 883 | { |
| 884 | nRefCpu = nTickReferenceCpu; | 884 | nRefCpu = nTickReferenceCpu; |
| 885 | nRefGpu = nTickReferenceGpu; | 885 | nRefGpu = nTickReferenceGpu; |