Use INT_MAX instead of unreliable hardcoding value
This commit is contained in:
parent
ab5b535704
commit
cbf06d7d3c
|
@ -37,6 +37,7 @@
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include <limits.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
@ -109,7 +110,7 @@ FC_ASSERT_STATIC (sizeof (FcRef) == sizeof (int));
|
||||||
typedef enum _FcValueBinding {
|
typedef enum _FcValueBinding {
|
||||||
FcValueBindingWeak, FcValueBindingStrong, FcValueBindingSame,
|
FcValueBindingWeak, FcValueBindingStrong, FcValueBindingSame,
|
||||||
/* to make sure sizeof (FcValueBinding) == 4 even with -fshort-enums */
|
/* to make sure sizeof (FcValueBinding) == 4 even with -fshort-enums */
|
||||||
FcValueBindingEnd = 0xffffffff
|
FcValueBindingEnd = INT_MAX
|
||||||
} FcValueBinding;
|
} FcValueBinding;
|
||||||
|
|
||||||
#define FcStrdup(s) ((FcChar8 *) strdup ((const char *) (s)))
|
#define FcStrdup(s) ((FcChar8 *) strdup ((const char *) (s)))
|
||||||
|
|
Loading…
Reference in New Issue