Goddard-Fortran-Ecosystem / yaFyaml

Yet Another Fortran YAML
Apache License 2.0
13 stars 8 forks source link

Scalar nodes are not returning true for is_scalar() from configuration #39

Closed bena-nasa closed 3 years ago

bena-nasa commented 3 years ago

When testing some code I found that I had a configuration type that I knew was a scalar, i.e. is was not a sequence or map. However, is_scalar() was returning false. and only the actual is_int/float/bool/string() was returning as true depending on what type the scalar was. In addition also causes the size() of any int/float/bool/string nodes to cause an error.

I have found the fix and will make a PR to fix.