diff --git a/YamlDotNet/Serialization/NodeDeserializers/ScalarNodeDeserializer.cs b/YamlDotNet/Serialization/NodeDeserializers/ScalarNodeDeserializer.cs index b77112731..4887078bc 100644 --- a/YamlDotNet/Serialization/NodeDeserializers/ScalarNodeDeserializer.cs +++ b/YamlDotNet/Serialization/NodeDeserializers/ScalarNodeDeserializer.cs @@ -229,7 +229,7 @@ private object DeserializeIntegerHelper(TypeCode typeCode, string value, IFormat return (sbyte)result; case TypeCode.UInt16: - return (uint)result; + return (ushort)result; case TypeCode.UInt32: return (uint)result;