Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mcs
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnome.org>2004-08-04 23:45:05 +0400
committerMiguel de Icaza <miguel@gnome.org>2004-08-04 23:45:05 +0400
commit534760e119f6e2532f3731cd6cdabbec60e3b046 (patch)
tree9fe2a539b553b02b546aef38de529334c4b11b69 /mcs
parent0e628c1783134367af5cb0de05b6a1a780a59f97 (diff)
2004-08-04 Miguel de Icaza <miguel@ximian.com>
* cfold.cs: Synchronize the folding with the code in expression.cs Binary.DoNumericPromotions for uint operands. svn path=/branches/mono-1-0/mcs/; revision=31885
Diffstat (limited to 'mcs')
-rwxr-xr-xmcs/mcs/ChangeLog6
-rwxr-xr-xmcs/mcs/cfold.cs3
2 files changed, 9 insertions, 0 deletions
diff --git a/mcs/mcs/ChangeLog b/mcs/mcs/ChangeLog
index da2737a8faf..9993e6340bb 100755
--- a/mcs/mcs/ChangeLog
+++ b/mcs/mcs/ChangeLog
@@ -1,3 +1,9 @@
+2004-08-04 Miguel de Icaza <miguel@ximian.com>
+
+ * cfold.cs: Synchronize the folding with the code in expression.cs
+ Binary.DoNumericPromotions for uint operands.
+
+
2004-08-03 Ben Maurer <bmaurer@ximian.com>
* ecore.cs (MethodGroupExpr): new IsBase property.
diff --git a/mcs/mcs/cfold.cs b/mcs/mcs/cfold.cs
index 8ffdfb75030..12999eccdd8 100755
--- a/mcs/mcs/cfold.cs
+++ b/mcs/mcs/cfold.cs
@@ -128,6 +128,9 @@ namespace Mono.CSharp {
if (other is SByteConstant || other is ShortConstant || ic != null){
left = left.ToLong (loc);
right = right.ToLong (loc);
+ } else {
+ left = left.ToUInt (loc);
+ right = left.ToUInt (loc);
}
return;