From c095705f59caaf92e4988d5da6434933f5481dc2 Mon Sep 17 00:00:00 2001 From: comex Date: Wed, 25 Nov 2020 18:59:59 -0500 Subject: [PATCH] Change `count` to `string_words` Co-authored-by: Rodrigo Locatti --- src/sirit.cpp | 6 +++--- 1 file 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 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); }