summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Forbes <chrisforbes@google.com>2017-04-24 18:34:59 -0700
committerChris Forbes <chrisf@ijw.co.nz>2017-04-26 07:55:08 +1200
commit2c81be6aa02b10d9e225329977fa108ceda890a2 (patch)
treeb33900e92620c903c474fc4f1f944de26eedd6b5
parent0bcfcca3af64ac0214112949aa68496914b8d7a9 (diff)
layers: Fix some signedness mess
-rw-r--r--layers/core_validation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp
index 109edf79..0692b941 100644
--- a/layers/core_validation.cpp
+++ b/layers/core_validation.cpp
@@ -1035,7 +1035,7 @@ static bool types_match(shader_module const *a, shader_module const *b, unsigned
}
}
-static int value_or_default(std::unordered_map<unsigned, unsigned> const &map, unsigned id, int def) {
+static unsigned value_or_default(std::unordered_map<unsigned, unsigned> const &map, unsigned id, unsigned def) {
auto it = map.find(id);
if (it == map.end())
return def;