Skip to content

Commit

Permalink
Merge pull request #130 from ehb54/ehb54-issue-346
Browse files Browse the repository at this point in the history
[Bug]:Fix code scanning alert - Unsigned difference expression compared to zero
  • Loading branch information
ehb54 authored Aug 29, 2024
2 parents 2913bc3 + 5444432 commit eb02443
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion us_somo/develop/src/us_hydrodyn_dad_gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5397,7 +5397,7 @@ void US_Hydrodyn_Dad::update_enables()
baseline_integral = ( ( US_Hydrodyn * ) us_hydrodyn )->gparams[ "dad_bl_integral" ] == "true";

// pb_timeshift ->setEnabled( files_selected_count > 0 && files_compatible && files_are_time );
pb_timeshift ->setEnabled( files_selected_count - conc_selected_count > 0 && files_compatible && files_are_time && conc_files.size() );
pb_timeshift ->setEnabled( (int64_t)files_selected_count - conc_selected_count > 0 && files_compatible && files_are_time && conc_files.size() );
pb_timescale ->setEnabled( files_selected_count && files_are_time && conc_selected_count == files_selected_count );
pb_gauss_mode ->setEnabled( files_selected_count == 1 && files_are_time );
pb_gauss_start ->setEnabled( files_selected_count == 1 && files_are_time );
Expand Down
2 changes: 1 addition & 1 deletion us_somo/develop/src/us_hydrodyn_mals_gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4604,7 +4604,7 @@ void US_Hydrodyn_Mals::update_enables()
baseline_integral = ( ( US_Hydrodyn * ) us_hydrodyn )->gparams[ "mals_bl_integral" ] == "true";

// pb_timeshift ->setEnabled( files_selected_count > 0 && files_compatible && files_are_time );
pb_timeshift ->setEnabled( files_selected_count - conc_selected_count > 0 && files_compatible && files_are_time && conc_files.size() );
pb_timeshift ->setEnabled( (int64_t)files_selected_count - conc_selected_count > 0 && files_compatible && files_are_time && conc_files.size() );
pb_timescale ->setEnabled( files_selected_count && files_are_time && conc_selected_count == files_selected_count );
pb_gauss_mode ->setEnabled( files_selected_count == 1 && files_are_time );
pb_gauss_start ->setEnabled( files_selected_count == 1 && files_are_time );
Expand Down
2 changes: 1 addition & 1 deletion us_somo/develop/src/us_hydrodyn_mals_saxs_gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5060,7 +5060,7 @@ void US_Hydrodyn_Mals_Saxs::update_enables()
baseline_integral = ( ( US_Hydrodyn * ) us_hydrodyn )->gparams[ "mals_saxs_bl_integral" ] == "true";

// pb_timeshift ->setEnabled( files_selected_count > 0 && files_compatible && files_are_time );
pb_timeshift ->setEnabled( files_selected_count - conc_selected_count > 0 && files_compatible && files_are_time && conc_files.size() );
pb_timeshift ->setEnabled( (int64_t)files_selected_count - conc_selected_count > 0 && files_compatible && files_are_time && conc_files.size() );
pb_timescale ->setEnabled( files_selected_count && files_are_time && conc_selected_count == files_selected_count );
pb_gauss_mode ->setEnabled( files_selected_count == 1 && files_are_time );
pb_gauss_start ->setEnabled( files_selected_count == 1 && files_are_time );
Expand Down
2 changes: 1 addition & 1 deletion us_somo/develop/src/us_hydrodyn_saxs_hplc_gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4546,7 +4546,7 @@ void US_Hydrodyn_Saxs_Hplc::update_enables()
baseline_integral = ( ( US_Hydrodyn * ) us_hydrodyn )->gparams[ "hplc_bl_integral" ] == "true";

// pb_timeshift ->setEnabled( files_selected_count > 0 && files_compatible && files_are_time );
pb_timeshift ->setEnabled( files_selected_count - conc_selected_count > 0 && files_compatible && files_are_time && conc_files.size() );
pb_timeshift ->setEnabled( (int64_t)files_selected_count - conc_selected_count > 0 && files_compatible && files_are_time && conc_files.size() );
pb_timescale ->setEnabled( files_selected_count && files_are_time && conc_selected_count == files_selected_count );
pb_gauss_mode ->setEnabled( files_selected_count == 1 && files_are_time );
pb_gauss_start ->setEnabled( files_selected_count == 1 && files_are_time );
Expand Down

0 comments on commit eb02443

Please sign in to comment.