mm.h: Use UINT32_MAX vs. SIZE_MAX in definition of MMSIZE_MAX

This commit is contained in:
Gregory Nutt 2015-11-25 08:11:32 -06:00
parent 6230e6e199
commit cd7c6705a8
1 changed files with 2 additions and 2 deletions

View File

@ -184,10 +184,10 @@
#ifdef CONFIG_MM_SMALL
typedef uint16_t mmsize_t;
# define MMSIZE_MAX 0xffff
# define MMSIZE_MAX UINT16_MAX
#else
typedef uint32_t mmsize_t;
# define MMSIZE_MAX SIZE_MAX
# define MMSIZE_MAX UINT32_MAX
#endif
/* This describes an allocated chunk. An allocated chunk is