From cd7c6705a8bb5fd62f11b3e9840fe1e1972b83ea Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 25 Nov 2015 08:11:32 -0600 Subject: [PATCH] mm.h: Use UINT32_MAX vs. SIZE_MAX in definition of MMSIZE_MAX --- include/nuttx/mm/mm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/nuttx/mm/mm.h b/include/nuttx/mm/mm.h index 482b7e926d..a18f12c6fa 100644 --- a/include/nuttx/mm/mm.h +++ b/include/nuttx/mm/mm.h @@ -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