瀏覽代碼

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

fix can warning
zms123456 1 年之前
父節點
當前提交
24a279115f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      components/drivers/can/can.c

+ 1 - 1
components/drivers/can/can.c

@@ -515,7 +515,7 @@ static rt_err_t rt_can_control(struct rt_device *dev,
 
     case RT_CAN_CMD_SET_PRIV:
         /* configure device */
-        if ((rt_uint32_t)args != can->config.privmode)
+        if ((rt_uint32_t)(rt_ubase_t)args != can->config.privmode)
         {
             int i;
             rt_base_t level;