-// Copyright (C) 2018 Intel Corporation
+// Copyright (C) 2019 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
* @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);