summaryrefslogtreecommitdiffstats
path: root/mono/DBusType/Int32.cs
diff options
context:
space:
mode:
Diffstat (limited to 'mono/DBusType/Int32.cs')
-rw-r--r--mono/DBusType/Int32.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mono/DBusType/Int32.cs b/mono/DBusType/Int32.cs
index 681a55f3..a759b794 100644
--- a/mono/DBusType/Int32.cs
+++ b/mono/DBusType/Int32.cs
@@ -36,7 +36,7 @@ namespace DBus.DBusType
public static bool Suits(System.Type type)
{
- if (type.IsEnum && type.UnderlyingSystemType == typeof(System.Int32)) {
+ if (type.IsEnum && Enum.GetUnderlyingType (type) == typeof(System.Int32)) {
return true;
}