浏览代码

Merge pull request #1505 from disarray2077/patch-11

Fix TypeOf TypeCode in AttributeInfo.bf
Brian Fiete 3 年之前
父节点
当前提交
cd31d2e2be
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      BeefLibs/corlib/src/Reflection/AttributeInfo.bf

+ 2 - 2
BeefLibs/corlib/src/Reflection/AttributeInfo.bf

@@ -189,7 +189,7 @@ namespace System.Reflection
 						.Double:
 						let attrData = AttributeInfo.Decode!<int64>(mData);
 						args[argIdx] = Variant.Create(attrData);
-					case (TypeCode)typeof(TypeCode).MaxValue + 8: //BfConstType_TypeOf
+					case (TypeCode)typeof(TypeCode).MaxValue + 9: //BfConstType_TypeOf
 						let argTypeId = AttributeInfo.Decode!<int32>(mData);
 						args[argIdx] = Variant.Create(Type.[Friend]GetType((.)argTypeId));
 					case (TypeCode)255:
@@ -463,7 +463,7 @@ namespace System.Reflection
 						.Double:
 						let attrData = AttributeInfo.Decode!<int64>(mData);
 						args[argIdx] = scope:: box attrData;
-					case (TypeCode)typeof(TypeCode).MaxValue + 8: //BfConstType_TypeOf
+					case (TypeCode)typeof(TypeCode).MaxValue + 9: //BfConstType_TypeOf
 						let argTypeId = AttributeInfo.Decode!<int32>(mData);
 						args[argIdx] = Type.[Friend]GetType((.)argTypeId);
 					case (TypeCode)255: