From 212690fb23208eb57a0e27cb962ebc6f2c6b74e5 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Sat, 22 May 2021 13:33:11 +0100 Subject: [PATCH] smd_queue_depth: cast around toolchain int16_t conv warning --- lib/core/context.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/core/context.c b/lib/core/context.c index 17b34cb39..10efff92f 100644 --- a/lib/core/context.c +++ b/lib/core/context.c @@ -646,12 +646,12 @@ lws_create_context(const struct lws_context_creation_info *info) #else 2000000; #endif - context->smd_queue_depth = info->smd_queue_depth ? + context->smd_queue_depth = (uint16_t)(info->smd_queue_depth ? info->smd_queue_depth : #if defined(LWS_PLAT_FREERTOS) - 20; + 20); #else - 40; + 40); #endif #endif