Silence a MSVC warning about narrowing conversion

We actually want to convert a size_t value into an int value in this
return statement.

Fix the annoying MSVC warning by actually casting the bytestride to an
int

Signed-off-by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info>
This commit is contained in:
Arthur Brainville 2018-01-10 01:27:12 +01:00
parent 45c29dc54d
commit 8ce4e54394
No known key found for this signature in database
GPG Key ID: BC05C4812A06BCF3

View File

@ -522,7 +522,7 @@ struct Accessor {
if ((bufferViewObject.byteStride % componentSizeInBytes) != 0) {
return -1;
}
return bufferViewObject.byteStride;
return static_cast<int>(bufferViewObject.byteStride);
}
return 0;