From 91a40044f54d171b7ef4d655777d7a05b77d10a7 Mon Sep 17 00:00:00 2001 From: sU8U7SfkcwTJVH7PjaVmej7D <62424391+sU8U7SfkcwTJVH7PjaVmej7D@users.noreply.github.com> Date: Thu, 22 Jul 2021 12:00:00 +0200 Subject: [PATCH] [freertos] Silence sign-conversion warning --- components/freertos/port/riscv/include/freertos/portmacro.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/freertos/port/riscv/include/freertos/portmacro.h b/components/freertos/port/riscv/include/freertos/portmacro.h index 9ead3fea26..5870ced855 100644 --- a/components/freertos/port/riscv/include/freertos/portmacro.h +++ b/components/freertos/port/riscv/include/freertos/portmacro.h @@ -95,7 +95,7 @@ typedef unsigned portBASE_TYPE UBaseType_t; #include "portbenchmark.h" static inline BaseType_t IRAM_ATTR xPortGetCoreID(void) { - return cpu_hal_get_core_id(); + return (uint32_t) cpu_hal_get_core_id(); }