Skip to content

Commit

Permalink
Merge pull request #1 from jbeder/master
Browse files Browse the repository at this point in the history
fix warning of level 4: (jbeder#971)
  • Loading branch information
sthagen authored Jan 17, 2021
2 parents 98acc5a + a6bbe0e commit 1ac308e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/yaml-cpp/node/convert.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ ConvertStreamTo(std::stringstream& stream, T& rhs) {
if ((stream >> std::noskipws >> num) && (stream >> std::ws).eof()) {
if (num >= (std::numeric_limits<T>::min)() &&
num <= (std::numeric_limits<T>::max)()) {
rhs = num;
rhs = (T)num;
return true;
}
}
Expand Down

0 comments on commit 1ac308e

Please sign in to comment.