fix compiling warning.

This commit is contained in:
bernard
2022-12-26 14:24:26 +08:00
committed by guo
parent 401ad16449
commit 1f092da9e0
3 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -1135,7 +1135,7 @@ static rt_err_t rt_serial_control(struct rt_device *dev,
break;
case TCFLSH:
{
int queue = (int)args;
int queue = (int)(rt_ubase_t)args;
_tc_flush(serial, queue);
}