summaryrefslogtreecommitdiff
path: root/src/colors.c
diff options
context:
space:
mode:
authorcorvid <devnull@localhost>2014-12-21 21:27:57 +0000
committercorvid <devnull@localhost>2014-12-21 21:27:57 +0000
commita614ea631d34d5c6273bfdaeea6a79ce2eb366a1 (patch)
treef0cc568eadbc5b50c53ea9489f30c23e0f3960fb /src/colors.c
parent5eb74aa36fd7d0448ac740c2a35fd6d485c27aba (diff)
more (and indentation in one spot)
Diffstat (limited to 'src/colors.c')
-rw-r--r--src/colors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/colors.c b/src/colors.c
index fe3598eb..237e63a1 100644
--- a/src/colors.c
+++ b/src/colors.c
@@ -303,7 +303,7 @@ int32_t a_Color_parse (const char *str, int32_t default_color, int *err)
static int Color_distance(long c1, long c2)
{
return (labs((c1 & 0x0000ff) - (c2 & 0x0000ff)) +
- labs(((c1 & 0x00ff00) - (c2 & 0x00ff00)) >> 8) +
+ labs(((c1 & 0x00ff00) - (c2 & 0x00ff00)) >> 8) +
labs(((c1 & 0xff0000) - (c2 & 0xff0000)) >> 16)) / 75;
}
#endif