aboutsummaryrefslogtreecommitdiffstats
path: root/src/gamma.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gamma.c')
-rw-r--r--src/gamma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gamma.c b/src/gamma.c
index 843403d..f0dc05b 100644
--- a/src/gamma.c
+++ b/src/gamma.c
@@ -38,7 +38,7 @@ void gamma_analyse(size_t stops, const uint16_t* restrict ramp, double* restrict
middle = (double)(ramp[stops / 2]) / (double)0xFFFF;
middle = (middle - min) / (max - min);
- *gamma = log((double)2) / log(middle);
+ *gamma = -log((double)2) / log(middle);
}