Skip to content

Commit

Permalink
fix warning of level 4: (#971)
Browse files Browse the repository at this point in the history
convert.h line130 : warning C4244 conversation from int to T possible loss of data
  • Loading branch information
tomeravi authored Jan 5, 2021
1 parent 98acc5a commit a6bbe0e
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 a6bbe0e

Please sign in to comment.