mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
Need limits of signed and unsigned pointer-sized integers
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2334 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -76,7 +76,8 @@
|
||||
|
||||
/* A pointer is 2 bytes */
|
||||
|
||||
#define PTR_MIN 0x0000
|
||||
#define PTR_MAX 0xffff
|
||||
#define PTR_MIN 0x8000
|
||||
#define PTR_MAX 0x7fff
|
||||
#define UPTR_MAX 0xffff
|
||||
|
||||
#endif /* __ARCH_SH_INCLUDE_M16C_LIMITS_H */
|
||||
|
||||
@@ -76,7 +76,8 @@
|
||||
|
||||
/* A pointer is 4 bytes */
|
||||
|
||||
#define PTR_MIN 0x00000000
|
||||
#define PTR_MAX 0xffffffff
|
||||
#define PTR_MIN 0x80000000
|
||||
#define PTR_MAX 0x7fffffff
|
||||
#define UPTR_MAX 0xffffffff
|
||||
|
||||
#endif /* __ARCH_SH_INCLUDE_SH1_LIMITS_H */
|
||||
|
||||
Reference in New Issue
Block a user