Bladeren bron

HPCC-8051 Fix warnings caused by implicit cast in jdebug.hpp

jdebug.hpp is causing warnings throughout the windows build.
Doing the cast explicitly fixes the warning.

Signed-off-by: Anthony Fishbeck <Anthony.Fishbeck@lexisnexis.com>
Anthony Fishbeck 12 jaren geleden
bovenliggende
commit
cd4ab9ae07
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      system/jlib/jdebug.hpp

+ 1 - 1
system/jlib/jdebug.hpp

@@ -105,7 +105,7 @@ public:
     }
     inline unsigned elapsedMs()
     {
-        return cycle_to_nanosec(elapsedCycles())/1000000;
+        return static_cast<unsigned>(cycle_to_nanosec(elapsedCycles())/1000000);
     }
 };