rt-thread icon indicating copy to clipboard operation
rt-thread copied to clipboard

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

Open luofanlu opened this issue 1 year ago • 0 comments

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 avatar Aug 08 '24 03:08 luofanlu