diff options
Diffstat (limited to 'src/ProtocolBuffers/CodedOutputStream.ComputeSize.cs')
-rw-r--r-- | src/ProtocolBuffers/CodedOutputStream.ComputeSize.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ProtocolBuffers/CodedOutputStream.ComputeSize.cs b/src/ProtocolBuffers/CodedOutputStream.ComputeSize.cs index 4f4e13d8..ca6662a4 100644 --- a/src/ProtocolBuffers/CodedOutputStream.ComputeSize.cs +++ b/src/ProtocolBuffers/CodedOutputStream.ComputeSize.cs @@ -575,7 +575,7 @@ namespace Google.ProtocolBuffers case FieldType.Enum:
if (value is Enum)
{
- return ComputeEnumSize(fieldNumber, ((IConvertible)value).ToInt32(FrameworkPortability.InvariantCulture));
+ return ComputeEnumSize(fieldNumber, Convert.ToInt32(value));
}
else
{
@@ -631,7 +631,7 @@ namespace Google.ProtocolBuffers case FieldType.Enum:
if (value is Enum)
{
- return ComputeEnumSizeNoTag(((IConvertible)value).ToInt32(FrameworkPortability.InvariantCulture));
+ return ComputeEnumSizeNoTag(Convert.ToInt32(value));
}
else
{
|