Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 606469c6 authored by Chih-Hung Hsieh's avatar Chih-Hung Hsieh Committed by Abhisek Devkota
Browse files

Fix clang -Wc++11-narrowing warnings.

Clang compiler gives warning to implicit conversions of
literal structure fields, although the compiler generated
implicit conversions are what we want in these cases.

Change-Id: Ibd987b4b4403920bb54452f7f433c432968478c2
parent 8f35fe84
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -699,7 +699,7 @@ void QCameraHardwareInterface::loadTables()

rat_t getRational(int num, int denom)
{
    rat_t temp = {num, denom};
    rat_t temp = {(uint32_t)num, (uint32_t)denom};
    return temp;
}