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

Commit a58336f6 authored by Chih-hung Hsieh's avatar Chih-hung Hsieh Committed by Gerrit Code Review
Browse files

Merge "Use fabsf() rather than abs()"

parents 1615731d c44958c7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -128,7 +128,7 @@ inline void computeBufferSize(int* totalVertexCount, int* totalIndexCount,
}

inline bool needsExtraForEdge(float firstAlpha, float secondAlpha) {
    return abs(firstAlpha - secondAlpha) > ALPHA_THRESHOLD;
    return fabsf(firstAlpha - secondAlpha) > ALPHA_THRESHOLD;
}

/**