瀏覽代碼

fix build on windows.

svn path=/trunk/mcs/; revision=20381
Gonzalo Paniagua Javier 22 年之前
父節點
當前提交
6162bd2ef5
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      mcs/class/System.Web/System.Web.UI/ObjectStateFormatter.cs

+ 4 - 4
mcs/class/System.Web/System.Web.UI/ObjectStateFormatter.cs

@@ -212,7 +212,7 @@ namespace System.Web.UI {
 				throw new Exception ();
 			}
 			
-			protected readonly byte PrimaryId, SecondaryId = -1, TertiaryId = -1;
+			protected readonly byte PrimaryId, SecondaryId = 255, TertiaryId = 255;
 			
 			protected abstract void Write (BinaryWriter w, object o, WriterContext ctx);
 			protected abstract object Read (byte token, BinaryReader r, ReaderContext ctx);
@@ -223,9 +223,9 @@ namespace System.Web.UI {
 			{
 				writeMap [Type] = this;
 				readMap [PrimaryId] = this;
-				if (SecondaryId != -1) {
+				if (SecondaryId != 255) {
 					readMap [SecondaryId] = this;
-					if (TertiaryId != -1)
+					if (TertiaryId != 255)
 						readMap [TertiaryId] = this;
 				}
 			}
@@ -771,4 +771,4 @@ namespace System.Web.UI {
 		
 		#endregion
 	}
-}
+}