Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fdb_time_t 使用有符号型,为什么不考虑无符号型 #341

Open
JayQu9 opened this issue Jan 16, 2025 · 1 comment
Open

fdb_time_t 使用有符号型,为什么不考虑无符号型 #341

JayQu9 opened this issue Jan 16, 2025 · 1 comment

Comments

@JayQu9
Copy link

JayQu9 commented Jan 16, 2025

#ifdef FDB_USING_TIMESTAMP_64BIT
typedef int64_t fdb_time_t;
#else
typedef int32_t fdb_time_t;
#endif /* FDB_USING_TIMESTAMP_64BIT */

rt使用的也都是无符号型
typedef rt_uint32_t rt_time_t; /< Type for time stamp */
typedef rt_uint32_t rt_tick_t; /
< Type for tick count */

@armink
Copy link
Owner

armink commented Jan 16, 2025

与 libc 保持一致

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants