diff options
author | bubnikv <bubnikv@gmail.com> | 2019-09-09 10:18:53 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2019-09-09 10:18:53 +0300 |
commit | 42e41dae0420e40f8386003a97b025f94992e167 (patch) | |
tree | 252a24f7a9411f64a0f5e5e147dc4af847fa5eb0 /src/admesh | |
parent | fec1113020e7a677af83738b17b6867e44b56ec9 (diff) |
Fix of a regression big endian issue in admesh
fixes 2.1.0-rc build error in admesh (unusual architecture only) (#2879)
Diffstat (limited to 'src/admesh')
-rw-r--r-- | src/admesh/stl_io.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/admesh/stl_io.cpp b/src/admesh/stl_io.cpp index 464c98907..af9bb4f98 100644 --- a/src/admesh/stl_io.cpp +++ b/src/admesh/stl_io.cpp @@ -151,7 +151,7 @@ bool stl_write_binary(stl_file *stl, const char *file, const char *label) memcpy(buffer, &stl->stats.number_of_facets, 4); stl_internal_reverse_quads(buffer, 4); fwrite(buffer, 4, 1, fp); - for (i = 0; i < stl->stats.number_of_facets; ++ i) { + for (size_t i = 0; i < stl->stats.number_of_facets; ++ i) { memcpy(buffer, stl->facet_start + i, 50); // Convert to little endian. stl_internal_reverse_quads(buffer, 48); |