From d6f3d4bf52b69e7dcb3d92e9f843ceddf2dacc54 Mon Sep 17 00:00:00 2001
From: Kristof Szabados <Kristof.Szabados@ericsson.com>
Date: Wed, 23 Nov 2016 18:47:59 +0100
Subject: [PATCH] these parameters can be size_t

Signed-off-by: Kristof Szabados <Kristof.Szabados@ericsson.com>
---
 compiler2/ttcn3/Ttcn2Json.cc | 8 ++++----
 compiler2/ttcn3/Ttcn2Json.hh | 4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/compiler2/ttcn3/Ttcn2Json.cc b/compiler2/ttcn3/Ttcn2Json.cc
index 04360109f..dc63c643f 100644
--- a/compiler2/ttcn3/Ttcn2Json.cc
+++ b/compiler2/ttcn3/Ttcn2Json.cc
@@ -129,9 +129,9 @@ JsonOmitCombination::~JsonOmitCombination()
   combinations.clear();
 }
 
-bool JsonOmitCombination::next(int current_value /* = 0 */)
+bool JsonOmitCombination::next(size_t current_value /* = 0 */)
 {
-  if ((size_t)current_value == combinations.size()) {
+  if (current_value == combinations.size()) {
     return false;
   }
   Common::Value* val = combinations.get_nth_key(current_value);
@@ -194,9 +194,9 @@ void JsonOmitCombination::parse_value(Common::Value* p_value)
   }
 }
 
-void JsonOmitCombination::reset_previous(int value_count)
+void JsonOmitCombination::reset_previous(size_t value_count)
 {
-  for (int i = 0; i < value_count; ++i) {
+  for (size_t i = 0; i < value_count; ++i) {
     Common::Value* val = combinations.get_nth_key(i);
     int* omitted_fields = combinations.get_nth_elem(i);
     for (size_t j = 0; j < val->get_nof_comps(); ++j) {
diff --git a/compiler2/ttcn3/Ttcn2Json.hh b/compiler2/ttcn3/Ttcn2Json.hh
index 51eb90adc..d7cb75434 100644
--- a/compiler2/ttcn3/Ttcn2Json.hh
+++ b/compiler2/ttcn3/Ttcn2Json.hh
@@ -101,7 +101,7 @@ namespace Ttcn {
       * 
       * @return true, if the next combination was successfully generated, or
       * false, when called with the last combination */
-    bool next(int current_value = 0);
+    bool next(size_t current_value = 0);
     
     /** Returns the state of the specified record/set field in the current
       * combination. 
@@ -122,7 +122,7 @@ namespace Ttcn {
       * states to OMITTED_ABSENT.
       *
       * @param value_count specifies how many values to reset */
-    void reset_previous(int value_count);
+    void reset_previous(size_t value_count);
 
     /** Map containing the current combination.
       * Key: pointer to a record or set value in the AST (not owned)
-- 
GitLab