Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/blenlib/intern/math_color_inline.c')
-rw-r--r--source/blender/blenlib/intern/math_color_inline.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenlib/intern/math_color_inline.c b/source/blender/blenlib/intern/math_color_inline.c
index 66fd2780cf8..85aabbb672a 100644
--- a/source/blender/blenlib/intern/math_color_inline.c
+++ b/source/blender/blenlib/intern/math_color_inline.c
@@ -304,11 +304,11 @@ MINLINE int compare_rgb_uchar(const unsigned char col_a[3],
const int limit)
{
const int r = (int)col_a[0] - (int)col_b[0];
- if (ABS(r) < limit) {
+ if (abs(r) < limit) {
const int g = (int)col_a[1] - (int)col_b[1];
- if (ABS(g) < limit) {
+ if (abs(g) < limit) {
const int b = (int)col_a[2] - (int)col_b[2];
- if (ABS(b) < limit) {
+ if (abs(b) < limit) {
return 1;
}
}