From 7277a48482651a1ee8435ef54815d9d91a41035d Mon Sep 17 00:00:00 2001 From: zhangyuan21 Date: Sat, 17 Jun 2023 12:45:16 +0800 Subject: [PATCH] uorb: Avoiding GCC VCVT Issue When MVE is Enabled https: //sourceware.org/git/?p=binutils-gdb.git;a=commit;h=656412a7a4da0aef43ead1ea976ba0235a7ec30a Signed-off-by: zhangyuan21 --- system/uorb/listener.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/uorb/listener.c b/system/uorb/listener.c index 139e9a59f..5d416e627 100644 --- a/system/uorb/listener.c +++ b/system/uorb/listener.c @@ -497,7 +497,7 @@ static void listener_monitor(FAR struct list_node *objlist, int nb_objects, { FAR struct pollfd *fds; FAR int *recv_msgs; - int interval = topic_rate ? (int)(1000000 / topic_rate) : 0; + float interval = topic_rate ? (1000000 / topic_rate) : 0; int nb_recv_msgs = 0; int i = 0; @@ -542,7 +542,7 @@ static void listener_monitor(FAR struct list_node *objlist, int nb_objects, } else if (interval != 0) { - orb_set_interval(fd, interval); + orb_set_interval(fd, (unsigned)interval); if (topic_latency != 0) {