Publishing 2019 R1 content
[platform/upstream/dldt.git] / inference-engine / samples / common / samples / console_progress.hpp
@@ -1,4 +1,4 @@
-// Copyright (C) 2018 Intel Corporation
+// Copyright (C) 2019 Intel Corporation
 // SPDX-License-Identifier: Apache-2.0
 //
 
@@ -69,7 +69,7 @@ public:
      * @param add - value to add
      */
     void addProgress(int add) {
-        if (add < 0 && -add > current) {
+        if (add < 0 && -add > static_cast<int>(current)) {
             add = -static_cast<int>(current);
         }
         updateProgress(current + add);