Skip to content
Commit 9760c832 authored by Aleksandar Markovic's avatar Aleksandar Markovic Committed by Anas Nashif
Browse files

samples: cdc_acm_composite: Use proper type for variable 'read'



Function uart_fifo_read() returns 'int' (it may return negative values
in error cases). Its return value is stored in the variable 'read' that
is, however, of type 'size_t'.

Change the type of the variable 'read' from 'size_t' to 'int' to
accomodate proper handling of uart_fifo_read() invocation.

Coverity-CID: 248408

Signed-off-by: default avatarAleksandar Markovic <aleksandar.markovic.sa@gmail.com>
parent 54cd46ac
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment