@@ -127,7 +127,7 @@ bool optimize_integrated_fit_params(data_struct::Analysis_Job<double> * analysis
127127 ret_val = false ;
128128 break ;
129129 }
130- io::file::save_optimized_fit_params (analysis_job->output_dir , save_filename, detector_num, result, &out_fitp, &int_spectra, &(params_override->elements_to_fit ));
130+ io::file::save_optimized_fit_params (analysis_job->output_dir , save_filename, ( int ) detector_num, result, &out_fitp, &int_spectra, &(params_override->elements_to_fit ));
131131
132132 delete fit_routine;
133133 }
@@ -142,7 +142,7 @@ void generate_optimal_params(data_struct::Analysis_Job<double>* analysis_job)
142142{
143143 std::unordered_map<int , data_struct::Fit_Parameters<double >> fit_params_avgs;
144144 std::unordered_map<int , data_struct::Params_Override<double >*> params;
145- std::unordered_map<int , float > detector_file_cnt;
145+ std::unordered_map<size_t , float > detector_file_cnt;
146146 data_struct::Params_Override<double >* params_override = nullptr ;
147147 data_struct::Spectra<double > int_spectra;
148148
@@ -463,7 +463,7 @@ bool perform_quantification(data_struct::Analysis_Job<double>* analysis_job, boo
463463 for (size_t detector_num : analysis_job->detector_num_arr )
464464 {
465465 data_struct::Detector<double >* detector = analysis_job->get_detector (detector_num);
466- data_struct::Params_Override<double >* override_params = &(detector->fit_params_override_dict );
466+ // data_struct::Params_Override<double>* override_params = &(detector->fit_params_override_dict);
467467
468468
469469 load_and_fit_quatification_datasets (analysis_job, detector_num);
@@ -549,8 +549,8 @@ bool perform_quantification(data_struct::Analysis_Job<double>* analysis_job, boo
549549 }
550550
551551 // check if esrf dataset and remove folder
552- int didx = dataset_file.find (DIR_END_CHAR);
553- if (didx > - 1 )
552+ size_t didx = dataset_file.find (DIR_END_CHAR);
553+ if (didx != std::string::npos )
554554 {
555555 dataset_file = dataset_file.substr (didx + 1 );
556556 }
@@ -783,7 +783,7 @@ void optimize_single_roi(data_struct::Analysis_Job<double>& analysis_job,
783783 // int specs loaded from v10 version
784784 std::unordered_map<std::string, data_struct::Spectra<double > > int_specs;
785785
786- int slen = roi_file_name.size ();
786+ size_t slen = roi_file_name.size ();
787787 if (slen < 6 )
788788 {
789789 logE << " Roi file name too short " << roi_file_name << " . Skipping file.\n " ;
@@ -804,7 +804,7 @@ void optimize_single_roi(data_struct::Analysis_Job<double>& analysis_job,
804804 // search for detector in list of int specs loaded
805805 for (const auto & spec_itr : int_specs)
806806 {
807- int slen = spec_itr.first .length ();
807+ slen = spec_itr.first .length ();
808808 if (slen > 0 && spec_itr.first [slen - 1 ] == str_detector_num[0 ])
809809 {
810810 search_filename = spec_itr.first ;
0 commit comments