diff options
author | comex <[email protected]> | 2020-11-25 18:59:59 -0500 |
---|---|---|
committer | Rodrigo Locatti <[email protected]> | 2020-11-26 17:18:44 -0300 |
commit | c095705f59caaf92e4988d5da6434933f5481dc2 (patch) | |
tree | abac7bcef26b500380afdbb87864c30f0b5f23d2 /src/sirit.cpp | |
parent | 63c5b548c530df7fe598a543aa20ba7eaa2b5eb4 (diff) | |
download | sirit-c095705f59caaf92e4988d5da6434933f5481dc2.tar.gz sirit-c095705f59caaf92e4988d5da6434933f5481dc2.zip |
Change `count` to `string_words`
Co-authored-by: Rodrigo Locatti <[email protected]>
Diffstat (limited to 'src/sirit.cpp')
-rw-r--r-- | src/sirit.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sirit.cpp b/src/sirit.cpp index 3c9d97d..7370bdf 100644 --- a/src/sirit.cpp +++ b/src/sirit.cpp @@ -42,10 +42,10 @@ std::vector<u32> Module::Assemble() const { } for (const std::string_view extension_name : extensions) { - size_t count = WordsInString(extension_name); - words.push_back(MakeWord0(spv::Op::OpExtension, count + 1)); + size_t string_words = WordsInString(extension_name); + words.push_back(MakeWord0(spv::Op::OpExtension, string_words + 1)); size_t insert_index = words.size(); - words.resize(words.size() + count); + words.resize(words.size() + string_words); InsertStringView(words, insert_index, extension_name); } |