Skip to content

Fixes warnings/errors for 32-bit (and maybe ILP64?) builds#1

Open
abarnert-pg wants to merge 1 commit intomasterfrom
fix32bits
Open

Fixes warnings/errors for 32-bit (and maybe ILP64?) builds#1
abarnert-pg wants to merge 1 commit intomasterfrom
fix32bits

Conversation

@abarnert-pg
Copy link
Collaborator

BugFix: ARM32, and possibly other archs, fails with -Werror

The code implicitly casts a uint64_t to a vector::size_type. It does so only after checking bounds (against a value that must have come from a size_type, and without using signed types anywhere), so it should be safe, but it still causes warnings.

BugFix: ARM32, and possibly other archs, fails with -Werror

The code implicitly casts a uint64_t to a vector::size_type. It does so only after checking bounds (against a value that must have come from a size_type, and without using signed types anywhere), so it should be safe, but it still causes warnings.
@abarnert-pg abarnert-pg requested a review from djewsbury July 24, 2019 19:39
@abarnert-pg abarnert-pg self-assigned this Jul 24, 2019
Copy link
Owner

@djewsbury djewsbury left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants