Skip to content

Commit 6a0aa8e

Browse files
Fix armv7 build Android (#1578)
1 parent c9e0ef2 commit 6a0aa8e

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

Polyfills/Canvas/Source/Context.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -376,24 +376,24 @@ namespace Babylon::Polyfills::Internal
376376
else if (radiiArrayLength == 2)
377377
{
378378
const auto topLeftBottomRight = radiiArray[0u].As<Napi::Number>().FloatValue();
379-
const auto topRightBottomLeft = radiiArray[1].As<Napi::Number>().FloatValue();
379+
const auto topRightBottomLeft = radiiArray[1u].As<Napi::Number>().FloatValue();
380380

381381
nvgRoundedRectVarying(*m_nvg, x, y, width, height, topLeftBottomRight, topRightBottomLeft, topLeftBottomRight, topRightBottomLeft);
382382
}
383383
else if (radiiArrayLength == 3)
384384
{
385385
const auto topLeft = radiiArray[0u].As<Napi::Number>().FloatValue();
386-
const auto topRightBottomLeft = radiiArray[1].As<Napi::Number>().FloatValue();
387-
const auto bottomRight = radiiArray[2].As<Napi::Number>().FloatValue();
386+
const auto topRightBottomLeft = radiiArray[1u].As<Napi::Number>().FloatValue();
387+
const auto bottomRight = radiiArray[2u].As<Napi::Number>().FloatValue();
388388

389389
nvgRoundedRectVarying(*m_nvg, x, y, width, height, topLeft, topRightBottomLeft, bottomRight, topRightBottomLeft);
390390
}
391391
else if (radiiArrayLength == 4)
392392
{
393393
const auto topLeft = radiiArray[0u].As<Napi::Number>().FloatValue();
394-
const auto topRight = radiiArray[1].As<Napi::Number>().FloatValue();
395-
const auto bottomRight = radiiArray[2].As<Napi::Number>().FloatValue();
396-
const auto bottomLeft = radiiArray[3].As<Napi::Number>().FloatValue();
394+
const auto topRight = radiiArray[1u].As<Napi::Number>().FloatValue();
395+
const auto bottomRight = radiiArray[2u].As<Napi::Number>().FloatValue();
396+
const auto bottomLeft = radiiArray[3u].As<Napi::Number>().FloatValue();
397397

398398
nvgRoundedRectVarying(*m_nvg, x, y, width, height, topLeft, topRight, bottomRight, bottomLeft);
399399
}

Polyfills/Canvas/Source/Path2D.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)