Skip to content
Commit f38c6b67 authored by Marc Herbert's avatar Marc Herbert Committed by Anas Nashif
Browse files

samples: big_http_download: make num_iterations unsigned



It is documented as unsigned in
samples/net/sockets/big_http_download/Kconfig

Signed overflow is undefined behavior, unsigned is not. This fixes the
following warning:

   -Wstrict-overflow=1

samples/net/sockets/big_http_download/src/big_http_download.c:346:2:
In function 'main':
error: iteration 2147483648 invokes undefined behavior
                           [-Werror=aggressive-loop-optimizations]
  346 |  } while (--num_iterations != 0);

Signed-off-by: default avatarMarc Herbert <marc.herbert@intel.com>
parent 5da3d314
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment