about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--editor/pnmnorm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/pnmnorm.c b/editor/pnmnorm.c
index 27d51115..f0add034 100644
--- a/editor/pnmnorm.c
+++ b/editor/pnmnorm.c
@@ -211,7 +211,7 @@ buildHistogram(FILE *   const ifp,
             if (PNM_FORMAT_TYPE(format) == PPM_TYPE) {
                 switch(brightMethod) {
                 case BRIGHT_LUMINOSITY:
-                    brightness = PPM_LUMIN(p);
+                    brightness = ppm_luminosity(p);
                     break;
                 case BRIGHT_COLORVALUE:
                     brightness = ppm_colorvalue(p);