Skip to content
Commit 3d089dfe authored by Alexander Polleti's avatar Alexander Polleti Committed by Anas Nashif
Browse files

c++: fix comparison between signed and unsigned types



comparing int i with size_t size generates a sign-compare warning.
This commit solves the issue by giving i the type needed.
As older c standards do not allow to declare i after stack += 4 I
inserted the variable checked_stack that gets the type we need in the
comparison.

Signed-off-by: default avatarAlexander Polleti <metapsycholo@gmail.com>
parent 8a5b0b77
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment