summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzms123456 <[email protected]>2024-04-09 21:38:10 +0800
committerMeco Man <[email protected]>2024-04-16 22:46:02 -0400
commitfa43fa7925185d6eb13c799f26bbdaf1054c826f (patch)
tree6943ebdd7cd98e209f9ff8d93626397353e2f1f3
parent6efd2e99bc33b04527f4e0db27ce79b0076a995e (diff)
[components][drivers]fix compile warning in 64 bits arch cpu (#8739)
fix compile warning in 64 bits arch
-rw-r--r--components/drivers/can/can.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/drivers/can/can.c b/components/drivers/can/can.c
index a6c23d8f76..e074c7a623 100644
--- a/components/drivers/can/can.c
+++ b/components/drivers/can/can.c
@@ -152,7 +152,7 @@ rt_inline int _can_int_tx(struct rt_can_device *can, const struct rt_can_msg *da
rt_list_remove(&tx_tosnd->list);
rt_hw_interrupt_enable(level);
- no = ((rt_uint32_t)tx_tosnd - (rt_uint32_t)tx_fifo->buffer) / sizeof(struct rt_can_sndbxinx_list);
+ no = ((rt_ubase_t)tx_tosnd - (rt_ubase_t)tx_fifo->buffer) / sizeof(struct rt_can_sndbxinx_list);
tx_tosnd->result = RT_CAN_SND_RESULT_WAIT;
rt_completion_init(&tx_tosnd->completion);
if (can->ops->sendmsg(can, data, no) != RT_EOK)