This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 50fe301e8f fix SIM sensor rpmsg runtime error by asan report.
50fe301e8f is described below
commit 50fe301e8fad3b2e439eb3d8541573f5fa79c69f
Author: likun17 <[email protected]>
AuthorDate: Tue Apr 4 18:11:54 2023 +0800
fix SIM sensor rpmsg runtime error by asan report.
Signed-off-by: likun17 <[email protected]>
---
include/nuttx/sensors/sensor.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/nuttx/sensors/sensor.h b/include/nuttx/sensors/sensor.h
index e0731e615d..5f6830138c 100644
--- a/include/nuttx/sensors/sensor.h
+++ b/include/nuttx/sensors/sensor.h
@@ -303,8 +303,8 @@
/* The additional sensor open flags */
-#define SENSOR_REMOTE (1 << 31)
-#define SENSOR_PERSIST (1 << 30)
+#define SENSOR_REMOTE (1u << 31)
+#define SENSOR_PERSIST (1u << 30)
/****************************************************************************
* Inline Functions