diff options
| author | Cort Stratton <cort@google.com> | 2017-11-22 16:19:21 -0800 |
|---|---|---|
| committer | Chris Forbes <chrisf@ijw.co.nz> | 2017-11-28 16:27:21 -0800 |
| commit | a1eae89f612926c53600d349c7ae5b2cd30d7e2c (patch) | |
| tree | 70f39c07e7af8a3691f950aa22eaf0f0dfd8c657 | |
| parent | 26f518ce633ec3fd2e769882d2b739024c288b12 (diff) | |
| download | usermoji-a1eae89f612926c53600d349c7ae5b2cd30d7e2c.tar.xz | |
inlined commitIdLen into assert
| -rw-r--r-- | layers/shader_validation.h | 3 |
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]; |
