Skip to content

Commit

Permalink
Use size_t to remove warnings and fix some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Oct 17, 2024
1 parent d3f8562 commit ba7f7cb
Showing 1 changed file with 3 additions and 4 deletions.
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

0 comments on commit ba7f7cb

Please sign in to comment.