瀏覽代碼

HPCC-8118 Build error under clang

Comparison against zero error.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 12 年之前
父節點
當前提交
f07efc7522
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      esp/services/ws_topology/ws_topologyService.cpp

+ 2 - 2
esp/services/ws_topology/ws_topologyService.cpp

@@ -818,9 +818,9 @@ void CWsTopologyEx::readTpLogFileRequest(IEspContext &context, const char* fileN
             throw MakeStringException(ECLWATCH_INVALID_INPUT, "Invlid 'Hours' field.");
 
         readLogReq.lastHours = req.getLastHours();
-        unsigned hour, hour2, minute, second, nano;
+        unsigned hour, minute, second, nano;
         latestLogTime.getTime(hour, minute, second, nano, false);
-        hour2 = hour - readLogReq.lastHours;
+        int hour2 = hour - readLogReq.lastHours;
         if (hour2 < 0)
             readLogReq.startDate.set("00:00:00");
         else