GUI: HexStringValueConvertor handles all numeric integer types

This commit is contained in:
Katy Coe
2020-12-23 22:29:58 +01:00
parent b31db0dac6
commit 482f08018f

View File

@@ -29,7 +29,7 @@ namespace Il2CppInspector.GUI
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) {
if (value == null || targetType != typeof(ulong))
if (value == null || !new List<Type> { typeof(ulong), typeof(long), typeof(uint), typeof(int), typeof(ushort), typeof(short), typeof(byte) }.Contains(targetType))
return DependencyProperty.UnsetValue;
try {