Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use size_t to remove warnings and fix some comments #251

Merged
merged 1 commit into from
Oct 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions k4FWCore/include/k4FWCore/Transformer.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,7 @@ namespace k4FWCore {
}

/**
* @brief Get the output locations for a given output index
* @param i The index of the output
* @brief Get the output locations
* @return A range of the output locations
*/
auto outputLocations() const {
Expand Down Expand Up @@ -261,7 +260,7 @@ namespace k4FWCore {
* @param i The index of the input
* @return A range of the input locations
*/
auto inputLocations(int i) const {
auto inputLocations(size_t i) const {
if (i >= sizeof...(In)) {
throw std::out_of_range("Called inputLocations with an index out of range, index: " + std::to_string(i) +
", number of inputs: " + std::to_string(sizeof...(In)));
Expand All @@ -286,7 +285,7 @@ namespace k4FWCore {
* @param i The index of the output
* @return A range of the output locations
*/
auto outputLocations(int i) const {
auto outputLocations(size_t i) const {
if (i >= sizeof...(Out)) {
throw std::out_of_range("Called outputLocations with an index out of range");
}
Expand Down
Loading