From c20a94015cf4ade6d295e4eda4041ddb14c97d4a Mon Sep 17 00:00:00 2001 From: Erik Frojdh Date: Tue, 2 Jun 2026 15:47:42 +0200 Subject: [PATCH] removing warnings --- src/PedestalTrackingPixelHistogram.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PedestalTrackingPixelHistogram.cpp b/src/PedestalTrackingPixelHistogram.cpp index 7868979..f1733b1 100644 --- a/src/PedestalTrackingPixelHistogram.cpp +++ b/src/PedestalTrackingPixelHistogram.cpp @@ -395,7 +395,7 @@ void PedestalTrackingPixelHistogram::fill_from_file(const std::filesystem::path File f(fname); //check that row col matches constructor - if (f.rows() != rows_ || f.cols() != cols_) { + if (f.rows() != static_cast(rows_) || f.cols() != static_cast(cols_)) { throw std::invalid_argument( "PedestalTrackingPixelHistogram: Frame in file {} has shape ({}, {}) does not match " "constructor shape"); @@ -447,7 +447,7 @@ void PedestalTrackingPixelHistogram::process_pedestal_file(const std::filesystem File f(fname); //check that row col matches constructor - if (f.rows() != rows_ || f.cols() != cols_) { + if (f.rows() != static_cast(rows_) || f.cols() != static_cast(cols_)) { throw std::invalid_argument( "PedestalTrackingPixelHistogram: Frame in file {} has shape ({}, {}) does not match " "constructor shape");