[components][drivers][can]fix can warning in 64bit cpu (#8772)

fix can warning
This commit is contained in:
zms123456 2024-04-12 16:00:49 +08:00 committed by GitHub
parent 48b86cbb8e
commit d5e74be81d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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;