-
Notifications
You must be signed in to change notification settings - Fork 24
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
Bugfix dtcenter/METplus-Internal#14 main_v10.1 fixed length array #2156
Conversation
@@ -239,7 +240,7 @@ class SummaryObs | |||
memset(&time_struct, 0, sizeof(time_struct)); | |||
|
|||
time_struct.tm_year = atoi(time_string.substr(0, 4).c_str()) - 1900; | |||
time_struct.tm_mon = atoi(time_string.substr(4, 2).c_str()) - 1; | |||
time_struct.tm_mon = atoi(time_string.substr(4, 2).c_str()) - 1; | |||
time_struct.tm_mday = atoi(time_string.substr(6, 2).c_str()); | |||
time_struct.tm_hour = atoi(time_string.substr(9, 2).c_str()); | |||
time_struct.tm_min = atoi(time_string.substr(11, 2).c_str()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you're trying to line these up, add one more space on lines 246 and 247.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I approve of these changes.
I reviewed the changes and don't see any obvious issues. Note that the GitHub Actions testing workflow ran without error and produced no diffs, which is great. I realize that these changes are related to STIG rules.
I did add a comment that it looks like you were trying to line up some equal signs. And you should shift over 2 more lines to get them to all line up.
Expected Differences
No difference
egrep -r "[[0-9]+]"
find ./src -name "*.h"
| grep -v grib_classesDo these changes introduce new tools, command line arguments, or configuration file options? [No]
If yes, please describe:
Do these changes modify the structure of existing or add new output data types (e.g. statistic line types or NetCDF variables)? [No]
If yes, please describe:
Pull Request Testing
do unit test and make sure no changes
Recommend testing for the reviewer(s) to perform, including the location of input datasets, and any additional instructions:
Do these changes include sufficient documentation updates, ensuring that no errors or warnings exist in the build of the documentation? [No]
Do these changes include sufficient testing updates? [No]
Will this PR result in changes to the test suite? [No]
If yes, describe the new output and/or changes to the existing output:
Please complete this pull request review by [Fill in date].
Pull Request Checklist
See the METplus Workflow for details.
Select: Reviewer(s)
Select: Organization level software support Project or Repository level development cycle Project
Select: Milestone as the version that will include these changes