mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-14 15:25:57 +08:00
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:
parent
45c29dc54d
commit
8ce4e54394
@ -522,7 +522,7 @@ struct Accessor {
|
||||
if ((bufferViewObject.byteStride % componentSizeInBytes) != 0) {
|
||||
return -1;
|
||||
}
|
||||
return bufferViewObject.byteStride;
|
||||
return static_cast<int>(bufferViewObject.byteStride);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user