[babl] Fix type max value for consistency



commit fc2b696c64855c6a5366e68094e54b038562963b
Author: Mukund Sivaraman <muks banu com>
Date:   Thu Feb 26 19:57:14 2015 +0530

    Fix type max value for consistency

 babl/babl-type.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/babl/babl-type.c b/babl/babl-type.c
index 596346a..38feaeb 100644
--- a/babl/babl-type.c
+++ b/babl/babl-type.c
@@ -108,7 +108,7 @@ babl_type_new (void *first_arg,
         {
           bits = va_arg (varg, int);
           min  = 0;
-          max  = 1 << bits;
+          max  = (1 << bits) - 1;
         }
       else if (!strcmp (arg, "integer"))
         {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]