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 5364f178ae
commit 3b05513ba9

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;