mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-13 04:29:22 +08:00
[components][drivers][can]fix can warning in 64bit cpu (#8772)
fix can warning
This commit is contained in:
parent
ea1ab21051
commit
24a279115f
@ -515,7 +515,7 @@ static rt_err_t rt_can_control(struct rt_device *dev,
|
|||||||
|
|
||||||
case RT_CAN_CMD_SET_PRIV:
|
case RT_CAN_CMD_SET_PRIV:
|
||||||
/* configure device */
|
/* configure device */
|
||||||
if ((rt_uint32_t)args != can->config.privmode)
|
if ((rt_uint32_t)(rt_ubase_t)args != can->config.privmode)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
rt_base_t level;
|
rt_base_t level;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user