From 6a2140fe57957d60f49db6399c1af849c5839cf6 Mon Sep 17 00:00:00 2001 From: Kenneth Moreland Date: Wed, 10 Jun 2015 13:58:26 -0600 Subject: [PATCH] Fix a couple of conversion warnings in OptionParser for testing. --- vtkm/testing/OptionParser.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vtkm/testing/OptionParser.h b/vtkm/testing/OptionParser.h index c7c871b40..53e224afa 100644 --- a/vtkm/testing/OptionParser.h +++ b/vtkm/testing/OptionParser.h @@ -540,7 +540,7 @@ public: */ int index() const { - return desc == 0 ? -1 : desc->index; + return desc == 0 ? -1 : static_cast(desc->index); } /** @@ -1454,7 +1454,7 @@ public: { return false; } // overflow protection: don't accept number of options that doesn't fit signed int buffer[parser.op_count] = option; - int idx = buffer[parser.op_count].desc->index; + unsigned int idx = buffer[parser.op_count].desc->index; if (options[idx]) { options[idx].append(buffer[parser.op_count]); } else