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

[Bug] 无符号整形和负数进行判断是否相等 #9287

Open
luofanlu opened this issue Aug 8, 2024 · 0 comments
Open

[Bug] 无符号整形和负数进行判断是否相等 #9287

luofanlu opened this issue Aug 8, 2024 · 0 comments
Labels
bug This PR/issue is a bug in the current code.

Comments

@luofanlu
Copy link
Contributor

luofanlu commented Aug 8, 2024

RT-Thread Version

5.2.0

Hardware Type/Architectures

stm32f1

Develop Toolchain

Other

Describe the bug

rt-thread\components\drivers\ipc\condvar.c 第50行 if (timeout != RT_WAITING_FOREVER),timeout 为uint32_t类型,而RT_WAITING_FOREVER = -1,两者作判断,MDK报warning: #68-D: integer conversion resulted in a change of sign

Other additional context

No response

@luofanlu luofanlu changed the title [Bug] [Bug] 无符号整形和负数进行判断是否相等 Aug 8, 2024
@mysterywolf mysterywolf added the bug This PR/issue is a bug in the current code. label Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This PR/issue is a bug in the current code.
Projects
None yet
Development

No branches or pull requests

2 participants