Skip to content

Commit cefc77a

Browse files
committed
modify rt_size_t's type
1 parent 857428b commit cefc77a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/rtdef.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,11 @@ typedef unsigned int rt_uint32_t; /**< 32bit unsigned inte
7575
#ifdef ARCH_CPU_64BIT
7676
typedef signed long rt_int64_t; /**< 64bit integer type */
7777
typedef unsigned long rt_uint64_t; /**< 64bit unsigned integer type */
78+
typedef unsigned long rt_size_t; /**< Type for size number */
7879
#else
7980
typedef signed long long rt_int64_t; /**< 64bit integer type */
8081
typedef unsigned long long rt_uint64_t; /**< 64bit unsigned integer type */
82+
typedef unsigned int rt_size_t; /**< Type for size number */
8183
#endif /* ARCH_CPU_64BIT */
8284
#endif /* RT_USING_ARCH_DATA_TYPE */
8385

@@ -89,7 +91,6 @@ typedef rt_base_t rt_err_t; /**< Type for error numb
8991
typedef rt_uint32_t rt_time_t; /**< Type for time stamp */
9092
typedef rt_uint32_t rt_tick_t; /**< Type for tick count */
9193
typedef rt_base_t rt_flag_t; /**< Type for flags */
92-
typedef rt_uint32_t rt_size_t; /**< Type for size number */
9394
typedef rt_ubase_t rt_dev_t; /**< Type for device */
9495
typedef rt_base_t rt_off_t; /**< Type for offset */
9596

0 commit comments

Comments
 (0)