fix some conversion warnings

This commit is contained in:
Vitor Kiguchi 2020-07-24 16:33:09 -03:00
parent 3381a05f7c
commit 8e54e7cf1a
5 changed files with 7 additions and 7 deletions

View file

@ -236,7 +236,7 @@ private:
template <SwizzlePattern::Selector (SwizzlePattern::*getter)(int) const>
std::string GetSelectorSrc(const SwizzlePattern& pattern) {
std::string out;
for (std::size_t i = 0; i < 4; ++i) {
for (int i = 0; i < 4; ++i) {
switch ((pattern.*getter)(i)) {
case SwizzlePattern::Selector::x:
out += 'x';