Enum optimizations

This commit is contained in:
Chris Cameron
2018-03-09 13:48:54 -05:00
parent ada309a2af
commit cffe850bd7
2 changed files with 12 additions and 6 deletions

View File

@@ -49,8 +49,8 @@ namespace ICD.Common.Utils.Extensions
throw new ArgumentException(message);
}
ulong num = Convert.ToUInt64(value);
return (Convert.ToUInt64(extends) & num) == num;
int num = (int)(object)value;
return ((int)(object)extends & num) == num;
}
}
}