We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03855c9 commit cce211bCopy full SHA for cce211b
libnest2d_js/libnest2d_js.cpp
@@ -63,7 +63,7 @@ std::vector<Point> jsArrayToPointVector(const emscripten::val& jsArray) {
63
unsigned length = jsArray["length"].as<unsigned>();
64
vertices.reserve(length);
65
66
- for (int i = static_cast<int>(length) - 1; i >= 0; --i) {
+ for (unsigned i = 0; i < length; i++) {
67
emscripten::val jsPoint = jsArray[i];
68
// Use property access instead of method calls for better compatibility
69
long x = jsPoint["x"].as<long>();
0 commit comments