Silence a bunch of MSVC warnings

This commit is contained in:
Olivier Goffart 2021-07-01 13:45:21 +02:00
parent 01e94ccdbb
commit fe81590b07
3 changed files with 5 additions and 5 deletions

View file

@ -39,7 +39,7 @@ public:
}
/// Returns the number of gradient stops.
int stopCount() const { return inner.size() - 1; }
int stopCount() const { return int(inner.size()) - 1; }
/// Returns a pointer to the first gradient stop; undefined if the gradient has not stops.
const GradientStop *stopsBegin() const { return inner.begin() + 1; }