From 509327150583010ac7355ec22d83fae6be865f91 Mon Sep 17 00:00:00 2001 From: Stefano Milizia Date: Tue, 11 Aug 2020 10:44:57 +0200 Subject: [PATCH] Use static_cast --- source/fuzz/transformation_flatten_conditional_branch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/fuzz/transformation_flatten_conditional_branch.cpp b/source/fuzz/transformation_flatten_conditional_branch.cpp index 6a3d2d200c7..a792596142e 100644 --- a/source/fuzz/transformation_flatten_conditional_branch.cpp +++ b/source/fuzz/transformation_flatten_conditional_branch.cpp @@ -338,7 +338,7 @@ void TransformationFlattenConditionalBranch::Apply( } // Get the ones still needed from the overflow ids. - for (int still_needed = ids_needed - (int)fresh_ids.size(); + for (int still_needed = ids_needed - static_cast(fresh_ids.size()); still_needed > 0; still_needed--) { fresh_ids.push_back(message_.overflow_id(overflow_ids_used++)); }