1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Fix TypeOf TypeCode in AttributeInfo.bf

This commit is contained in:
disarray2077 2022-03-26 11:41:53 -03:00 committed by GitHub
parent 474454382f
commit 9c6afa8134
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: