Parcourir la source

Fix TypeOf TypeCode in AttributeInfo.bf

disarray2077 il y a 3 ans
Parent
commit
9c6afa8134
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  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: