Skip to content

Commit

Permalink
2009-12-08 Marek Safar <marek.safar@gmail.com>
Browse files Browse the repository at this point in the history
	A fix for bug #561369
	expression.cs (DoNumericPromotion): Fixed typo.


svn path=/trunk/mcs/; revision=147841
  • Loading branch information
marek-safar committed Dec 8, 2009
1 parent 96a1e64 commit 42b8f60
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions mcs/mcs/ChangeLog
@@ -1,3 +1,8 @@
2009-12-08 Marek Safar <marek.safar@gmail.com>

A fix for bug #561369
expression.cs (DoNumericPromotion): Fixed typo.

2009-12-08 Marek Safar <marek.safar@gmail.com>

*.cs: Moving to generics world.
Expand Down
2 changes: 1 addition & 1 deletion mcs/mcs/expression.cs
Expand Up @@ -2572,7 +2572,7 @@ static bool DoNumericPromotion (ResolveContext rc, ref Expression prim_expr, ref
// A compile-time error occurs if the other operand is of type sbyte, short, int, or long
//
if (type == TypeManager.int32_type || type == TypeManager.int64_type ||
type == TypeManager.sbyte_type || type == TypeManager.sbyte_type)
type == TypeManager.short_type || type == TypeManager.sbyte_type)
return false;
}

Expand Down

0 comments on commit 42b8f60

Please sign in to comment.