Explorar el Código

microprofile: Use std::abs

Using the global-namespace C function will cause the wrong
overload to get picked
Sam Spilsbury hace 10 años
padre
commit
aacc3a4a59
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      externals/microprofile/microprofileui.h

+ 1 - 1
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;