mirror of
https://github.com/apache/nuttx.git
synced 2026-05-13 18:48:11 +08:00
mm.h: Use UINT32_MAX vs. SIZE_MAX in definition of MMSIZE_MAX
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user