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

This commit is contained in:
Chih-hung Hsieh
2014-11-17 22:41:10 +00:00
committed by Gerrit Code Review

View File

@@ -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;
}
/**