This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[CLI] bug fix in the CLI binutils
- From: Erven Rohou <erven dot rohou at inria dot fr>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 04 Dec 2009 22:42:45 +0100
- Subject: [CLI] bug fix in the CLI binutils
Missing casts.
--
Erven.
Index: ReferencesFixer.cs
===================================================================
--- ReferencesFixer.cs (revision 154994)
+++ ReferencesFixer.cs (working copy)
@@ -186,7 +186,7 @@
public void VisitFieldDefinition (FieldDefinition field)
{
- field.DeclaringType = m_reffixer.GetTypeReference
(field.DeclaringType);
+ field.DeclaringType = (TypeDefinition)m_reffixer.GetTypeReference
(field.DeclaringType);
field.FieldType = m_reffixer.GetTypeReference (field.FieldType);
}
@@ -197,7 +197,7 @@
public void VisitPropertyDefinition (PropertyDefinition property)
{
- property.DeclaringType = m_reffixer.GetTypeReference
(property.DeclaringType);
+ property.DeclaringType =
(TypeDefinition)m_reffixer.GetTypeReference (property.DeclaringType);
property.PropertyType = m_reffixer.GetTypeReference
(property.PropertyType);
VisitCollection (property.Parameters);
property.GetMethod = (MethodDefinition)
m_reffixer.GetMethodReference (property.GetMethod);