fsprojects / FSharp.Configuration

The FSharp.Configuration project contains type providers for the configuration of .NET projects.
http://fsprojects.github.io/FSharp.Configuration/
Other
114 stars 63 forks source link

[YamlConfig] Int64 values smaller than Int32.MaxValue throw an exception on load #104

Closed allykzam closed 7 years ago

allykzam commented 7 years ago

When creating a configuration with a setting whose default is large enough to require an int64 value (such as -9223372036854775808), if the value in the source yaml file is changed to fit within the range of values supported by a 32-bit integer, then an exception is thrown when calling Load. The exception is thrown here and indicates that it Cannot assign value of type Int32 to field of Int64: 0. despite 0 being a perfectly valid value for an int64 :)