[PATCH 2/3] bsps/beagle: fix warning on missing cast

Karel Gardas karel at functional.vision
Sat Feb 11 22:06:09 UTC 2023


---
 bsps/arm/beagle/start/bspstart.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bsps/arm/beagle/start/bspstart.c b/bsps/arm/beagle/start/bspstart.c
index 83138f29dd..1a3593a6f8 100644
--- a/bsps/arm/beagle/start/bspstart.c
+++ b/bsps/arm/beagle/start/bspstart.c
@@ -121,7 +121,7 @@ int beagle_get_node_unit(phandle_t node)
 
     if (strstr(prop_val, name) != NULL) {
       for (i = strlen(prop) - 1; i >= 0; i--) {
-        if (!isdigit(prop[i]))
+        if (!isdigit((int)prop[i]))
           break;
       }
 
-- 
2.25.1



More information about the devel mailing list