diff options
| author | Bruce Dawson <brucedawson@google.com> | 2017-01-23 21:48:04 -0800 |
|---|---|---|
| committer | Mark Lobodzinski <mark@lunarg.com> | 2017-01-24 19:34:41 -0700 |
| commit | 816f2e5e0d52b201f396a01992ff6197cf48dc72 (patch) | |
| tree | 632c54c56a9bbf809bc8afc922d6cccdef01c554 | |
| parent | fff9f5e41149c9eb36912e47aa73bf68de089e35 (diff) | |
| download | usermoji-816f2e5e0d52b201f396a01992ff6197cf48dc72.tar.xz | |
Suppress VC++ 2017 signed/unsigned warning
When building Chrome with VC++ 2017 there is one warning, from passing
an int to a call to std::vector<uint32_t>::find. This change adds a cast
to avoid that warning, thus fixing issue #1395.
| -rw-r--r-- | layers/core_validation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index b6b9c821..03f9c5e0 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -10220,7 +10220,7 @@ static bool FindDependency(const int index, const int dependent, const std::vect processed_nodes.insert(index); const DAGNode &node = subpass_to_node[index]; // Look for a dependency path. If one exists return true else recurse on the previous nodes. - if (std::find(node.prev.begin(), node.prev.end(), dependent) == node.prev.end()) { + if (std::find(node.prev.begin(), node.prev.end(), static_cast<uint32_t>(dependent)) == node.prev.end()) { for (auto elem : node.prev) { if (FindDependency(elem, dependent, subpass_to_node, processed_nodes)) return true; |
