Author: raja
Date: 2008-01-22 08:36:35 -0500 (Tue, 22 Jan 2008)
New Revision: 93524

Modified:
   trunk/mcs/mcs/ChangeLog
   trunk/mcs/mcs/expression.cs
Log:
Fix #354663
* expression.cs (Binary.IsUnsignedType): Fix typo.


Modified: trunk/mcs/mcs/ChangeLog
===================================================================
--- trunk/mcs/mcs/ChangeLog     2008-01-22 13:36:09 UTC (rev 93523)
+++ trunk/mcs/mcs/ChangeLog     2008-01-22 13:36:35 UTC (rev 93524)
@@ -1,3 +1,8 @@
+2008-01-22  Raja R Harinath  <[EMAIL PROTECTED]>
+
+       Fix #354663
+       * expression.cs (Binary.IsUnsignedType): Fix typo.
+
 2008-01-22  Marek Safar  <[EMAIL PROTECTED]>
 
        * ecore.cs, expression.cs, generic.cs: Implemented NewArrayInit 
expression.

Modified: trunk/mcs/mcs/expression.cs
===================================================================
--- trunk/mcs/mcs/expression.cs 2008-01-22 13:36:09 UTC (rev 93523)
+++ trunk/mcs/mcs/expression.cs 2008-01-22 13:36:35 UTC (rev 93524)
@@ -1743,11 +1743,11 @@
 
                static bool IsUnsigned (Type t)
                {
-                       if (t.IsPointer)
-                               return IsUnsigned (t.GetElementType ());
-                       
+                       while (t.IsPointer)
+                               t = t.GetElementType ();
+
                        return (t == TypeManager.uint32_type || t == 
TypeManager.uint64_type ||
-                               t == TypeManager.short_type || t == 
TypeManager.byte_type);
+                               t == TypeManager.ushort_type || t == 
TypeManager.byte_type);
                }
 
                Expression Make32or64 (EmitContext ec, Expression e)

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to