Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Fix numerous signed unsigned mismatch warnings. #6655

Merged
merged 2 commits into from
Feb 11, 2019

Conversation

jgiszczak
Copy link
Contributor

Change Description

Fix numerous signed unsigned mismatch warnings.

Consensus Changes

N/A

API Changes

N/A

Documentation Additions

N/A

Copy link
Contributor

@heifner heifner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments

libraries/chain/wasm_interface.cpp Show resolved Hide resolved
unittests/misc_tests.cpp Show resolved Hide resolved
unittests/resource_limits_test.cpp Show resolved Hide resolved
unittests/resource_limits_test.cpp Show resolved Hide resolved
unittests/resource_limits_test.cpp Show resolved Hide resolved
unittests/special_accounts_tests.cpp Show resolved Hide resolved
@jgiszczak
Copy link
Contributor Author

Per the C standard §6.3.1.8, when comparing signed and unsigned, the compiler is required to convert signed to unsigned and then the comparison is performed.

@jgiszczak jgiszczak merged commit 9737486 into develop Feb 11, 2019
@jgiszczak jgiszczak deleted the signed-unsigned-mismatch-cleanup branch February 11, 2019 17:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants