mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-30 05:43:28 +02:00
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
This commit is contained in:
@@ -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";
|
||||
|
Reference in New Issue
Block a user