aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCort Stratton <cort@google.com>2017-11-22 16:19:21 -0800
committerChris Forbes <chrisf@ijw.co.nz>2017-11-28 16:27:21 -0800
commita1eae89f612926c53600d349c7ae5b2cd30d7e2c (patch)
tree70f39c07e7af8a3691f950aa22eaf0f0dfd8c657
parent26f518ce633ec3fd2e769882d2b739024c288b12 (diff)
downloadusermoji-a1eae89f612926c53600d349c7ae5b2cd30d7e2c.tar.xz
inlined commitIdLen into assert
-rw-r--r--layers/shader_validation.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/layers/shader_validation.h b/layers/shader_validation.h
index ac89a200..c6e6519d 100644
--- a/layers/shader_validation.h
+++ b/layers/shader_validation.h
@@ -188,8 +188,7 @@ public:
}
private:
void CommitIdToUuid(const char* commitId, uint8_t uuid[VK_UUID_SIZE]) {
- size_t commitIdLen = strlen(commitId);
- assert(commitIdLen/2 >= VK_UUID_SIZE);
+ assert(strlen(commitId)/2 >= VK_UUID_SIZE);
char str[3] = {};
for (uint32_t i = 0; i < VK_UUID_SIZE; ++i) {
str[0] = commitId[2 * i + 0];