Skip to content
This repository was archived by the owner on May 10, 2024. It is now read-only.

PARQUET-518: Remove -Wno-sign-compare and scrub integer signedness#63

Closed
wesm wants to merge 3 commits intoapache:masterfrom
wesm:PARQUET-518
Closed

PARQUET-518: Remove -Wno-sign-compare and scrub integer signedness#63
wesm wants to merge 3 commits intoapache:masterfrom
wesm:PARQUET-518

Conversation

@wesm
Copy link
Member

@wesm wesm commented Feb 22, 2016

This patch removes compiler warning suppresses, fixes signed-unsigned integer comparisons, and scrubs most usages of size_t from the codebase in favor of signed integer types.

@wesm
Copy link
Member Author

wesm commented Feb 25, 2016

I'll rebase and complete this after #64 is merged

@wesm
Copy link
Member Author

wesm commented Feb 27, 2016

@majetideepak if you could review, thank you!

const std::vector<int16_t>& def_levels, int16_t max_def_level,
const std::vector<int16_t>& rep_levels, int16_t max_rep_level) {
size_t num_values = values.size();
int num_values = values.size();

Choose a reason for hiding this comment

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

This should be size_t ?

Copy link
Member Author

Choose a reason for hiding this comment

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

It is okay to cast to int unless there is concern about an overflow -- data pages are limited to INT32_MAX anyway

@majetideepak
Copy link

+1 LGTM

@wesm
Copy link
Member Author

wesm commented Feb 29, 2016

Rebased

@wesm
Copy link
Member Author

wesm commented Feb 29, 2016

Travis CI appears to be having problem again this morning, I just pinged them about it

@wesm
Copy link
Member Author

wesm commented Feb 29, 2016

@julienledem
Copy link
Member

+1

@asfgit asfgit closed this in 5b3e9c1 Mar 1, 2016
@wesm wesm deleted the PARQUET-518 branch March 1, 2016 00:17
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.

3 participants