You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@avro.apache.org by GitBox <gi...@apache.org> on 2022/08/24 07:23:24 UTC
[GitHub] [avro] KalleOlaviNiemitalo commented on pull request #1836: AVRO-3616: C++ Fix compilation warnings
KalleOlaviNiemitalo commented on PR #1836:
URL: https://github.com/apache/avro/pull/1836#issuecomment-1225303643
In Validator, there seems to be some inconsistency with `std::vector<size_t> counters_` and `int64_t count_`, too:
- Validator::countingSetup converts int64_t to size_t: `counters_.push_back(static_cast<size_t>(count_));`
- Validator::countingAdvance converts size_t to int: `int count = --counters_.back();`
- Validator::unionAdvance converts size_t to int64_t: `if (count_ < static_cast<int64_t>(node->leaves()))`
- Validator::unionAdvance converts int64_t to int and that to size_t: `setupOperation(node->leafAt(static_cast<int>(count_)));`
Those could be fixed in a separate PR, though.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@avro.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org