[glib] gchecksum: Fix validity checks for GChecksumType



commit 001245171b7d556eae88cf44a01fdb889006d96f
Author: Philip Withnall <withnall endlessm com>
Date:   Mon Feb 27 10:16:12 2017 +0000

    gchecksum: Fix validity checks for GChecksumType
    
    This fixes the unit tests after commit 3e32350b rearranged the enum
    order.
    
    Signed-off-by: Philip Withnall <withnall endlessm com>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=771997

 glib/gchecksum.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glib/gchecksum.c b/glib/gchecksum.c
index 400ccab..18efca0 100644
--- a/glib/gchecksum.c
+++ b/glib/gchecksum.c
@@ -52,7 +52,7 @@
  * Support for checksums has been added in GLib 2.16
  **/
 
-#define IS_VALID_TYPE(type)     ((type) >= G_CHECKSUM_MD5 && (type) <= G_CHECKSUM_SHA512)
+#define IS_VALID_TYPE(type)     ((type) >= G_CHECKSUM_MD5 && (type) <= G_CHECKSUM_SHA384)
 
 /* The fact that these are lower case characters is part of the ABI */
 static const gchar hex_digits[] = "0123456789abcdef";


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