projects
/
platform
/
upstream
/
SPIRV-Tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32197bd
)
Fixed warning in VS2013 build.
author
Andrew Woloszyn
<awoloszyn@google.com>
Wed, 13 Jan 2016 15:44:05 +0000
(10:44 -0500)
committer
Andrew Woloszyn
<awoloszyn@google.com>
Wed, 13 Jan 2016 15:44:05 +0000
(10:44 -0500)
Signed/Unsigned mismatch in progressToNextLayoutStageOrder().
source/validate_types.cpp
patch
|
blob
|
history
diff --git
a/source/validate_types.cpp
b/source/validate_types.cpp
index
584ae9c
..
3a2e23f
100644
(file)
--- a/
source/validate_types.cpp
+++ b/
source/validate_types.cpp
@@
-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);
}