star-stl

Load STereo Lithography (StL) file format
git clone git://git.meso-star.fr/star-stl.git
Log | Files | Refs | README | LICENSE

commit 1dd44c8d4705cac115b599347f5c38ca18763723
parent 7afc68de0af43e6243ab9a914b6e3a6fa19d7d0c
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Fri, 11 Apr 2025 11:57:31 +0200

Correct the conversion to host endianness

The number of triangles may have been incorrectly converted.

Diffstat:
Msrc/sstl_binary.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/sstl_binary.c b/src/sstl_binary.c @@ -41,7 +41,7 @@ parse_triangle_count const char* name, uint32_t* ntri) { - char bytes[4]; /* Little endian */ + uint8_t bytes[4]; /* Little endian */ ASSERT(sstl && fp && name && ntri); if(fread(bytes, sizeof(bytes), 1, fp) != 1) {