summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0675-2.cs
blob: 63912dd4786d653aac8ce1e9fbd9f0e707a978d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// CS0675: The operator `|' used on the sign-extended type `int'. Consider casting to a smaller unsigned type first
// Line: 11
// Compiler options: -warnaserror -warn:3

public class C
{
	uint extra_flags;
		
	internal bool BestFitMapping {
		set {
			extra_flags = (uint) ((extra_flags & ~0x30) | (value ? 0x10 : 0x20));
		}
	}
}