浏览代码

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 年之前
父节点
当前提交
cd4ab9ae07
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);
     }
 };