Skip to content

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

Open
@luofanlu

Description

@luofanlu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis PR/issue is a bug in the current code.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions