gs: Fix some type conversion warnings

This commit is contained in:
Xaymar 2017-10-22 18:58:38 +02:00
parent 6a208ed215
commit b266af1044
1 changed files with 2 additions and 2 deletions

View File

@ -37,11 +37,11 @@ GS::IndexBuffer::IndexBuffer(uint32_t maximumVertices) {
GS::IndexBuffer::IndexBuffer() : IndexBuffer(defaultMaximumVertices) {} GS::IndexBuffer::IndexBuffer() : IndexBuffer(defaultMaximumVertices) {}
GS::IndexBuffer::IndexBuffer(IndexBuffer& other) : IndexBuffer(other.size()) { GS::IndexBuffer::IndexBuffer(IndexBuffer& other) : IndexBuffer((uint32_t)other.size()) {
std::copy(other.begin(), other.end(), this->end()); std::copy(other.begin(), other.end(), this->end());
} }
GS::IndexBuffer::IndexBuffer(std::vector<uint32_t>& other) : IndexBuffer(other.size()) { GS::IndexBuffer::IndexBuffer(std::vector<uint32_t>& other) : IndexBuffer((uint32_t)other.size()) {
std::copy(other.begin(), other.end(), this->end()); std::copy(other.begin(), other.end(), this->end());
} }