Fixed warning in VS2013 build.
authorAndrew Woloszyn <awoloszyn@google.com>
Wed, 13 Jan 2016 15:44:05 +0000 (10:44 -0500)
committerAndrew Woloszyn <awoloszyn@google.com>
Wed, 13 Jan 2016 15:44:05 +0000 (10:44 -0500)
Signed/Unsigned mismatch in progressToNextLayoutStageOrder().

source/validate_types.cpp

index 584ae9c..3a2e23f 100644 (file)
@@ -186,7 +186,7 @@ ModuleLayoutSection ValidationState_t::getLayoutStage() const {
 }
 
 void ValidationState_t::progressToNextLayoutStageOrder() {
-  if (current_layout_stage_ <= GetModuleOrder().size()) {
+  if (static_cast<size_t>(current_layout_stage_) <= GetModuleOrder().size()) {
     current_layout_stage_ =
         static_cast<ModuleLayoutSection>(current_layout_stage_ + 1);
   }