@@ -306,26 +306,26 @@ namespace Babylon::Polyfills::Internal
306306 else if (radiiArrayLength == 2 )
307307 {
308308 const auto topLeftBottomRight = radiiArray[0u ].As <Napi::Number>().FloatValue ();
309- const auto topRightBottomLeft = radiiArray[1 ].As <Napi::Number>().FloatValue ();
309+ const auto topRightBottomLeft = radiiArray[1u ].As <Napi::Number>().FloatValue ();
310310 Path2DCommandArgs args = {};
311311 args.roundRectVarying = {x, y, width, height, topLeftBottomRight, topRightBottomLeft, topLeftBottomRight, topRightBottomLeft};
312312 AppendCommand (P2D_ROUNDRECTVARYING, args);
313313 }
314314 else if (radiiArrayLength == 3 )
315315 {
316316 const auto topLeft = radiiArray[0u ].As <Napi::Number>().FloatValue ();
317- const auto topRightBottomLeft = radiiArray[1 ].As <Napi::Number>().FloatValue ();
318- const auto bottomRight = radiiArray[2 ].As <Napi::Number>().FloatValue ();
317+ const auto topRightBottomLeft = radiiArray[1u ].As <Napi::Number>().FloatValue ();
318+ const auto bottomRight = radiiArray[2u ].As <Napi::Number>().FloatValue ();
319319 Path2DCommandArgs args = {};
320320 args.roundRectVarying = {x, y, width, height, topLeft, topRightBottomLeft, bottomRight, topRightBottomLeft};
321321 AppendCommand (P2D_ROUNDRECTVARYING, args);
322322 }
323323 else if (radiiArrayLength == 4 )
324324 {
325325 const auto topLeft = radiiArray[0u ].As <Napi::Number>().FloatValue ();
326- const auto topRight = radiiArray[1 ].As <Napi::Number>().FloatValue ();
327- const auto bottomRight = radiiArray[2 ].As <Napi::Number>().FloatValue ();
328- const auto bottomLeft = radiiArray[3 ].As <Napi::Number>().FloatValue ();
326+ const auto topRight = radiiArray[1u ].As <Napi::Number>().FloatValue ();
327+ const auto bottomRight = radiiArray[2u ].As <Napi::Number>().FloatValue ();
328+ const auto bottomLeft = radiiArray[3u ].As <Napi::Number>().FloatValue ();
329329 Path2DCommandArgs args = {};
330330 args.roundRectVarying = {x, y, width, height, topLeft, topRight, bottomRight, bottomLeft};
331331 AppendCommand (P2D_ROUNDRECTVARYING, args);
0 commit comments