qmuntal / gltf

Go library for encoding glTF 2.0 files
https://www.khronos.org/gltf/
BSD 2-Clause "Simplified" License
242 stars 32 forks source link

Fixed integer overflow issue causing windows cross compile to fail #24

Closed unitoftime closed 4 years ago

unitoftime commented 4 years ago

Hi, Great library.

I saw that windows cross compiling was failing due to the 4GB constant overflowing the signed integer. So I changed it to use uint32 and the math package's maxUint32.

Thanks, Jacob

unitoftime commented 4 years ago

Hi, Thanks for the feedback. I amended my previous commit to use uint64.

Thanks