aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sirit.cpp
diff options
context:
space:
mode:
authorcomex <[email protected]>2020-11-25 18:59:59 -0500
committerRodrigo Locatti <[email protected]>2020-11-26 17:18:44 -0300
commitc095705f59caaf92e4988d5da6434933f5481dc2 (patch)
treeabac7bcef26b500380afdbb87864c30f0b5f23d2 /src/sirit.cpp
parent63c5b548c530df7fe598a543aa20ba7eaa2b5eb4 (diff)
downloadsirit-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.cpp6
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);
}