File tree 1 file changed +2
-2
lines changed
Reactor/Networking/Extensions
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -52,14 +52,14 @@ public static void Write(this MessageWriter writer, Enum value)
52
52
writer . Write ( Convert . ToInt16 ( value ) ) ;
53
53
else if ( underlyingType == typeof ( ushort ) )
54
54
writer . Write ( Convert . ToUInt16 ( value ) ) ;
55
- else if ( underlyingType == typeof ( long ) )
56
- writer . Write ( Convert . ToInt64 ( value ) ) ;
57
55
else if ( underlyingType == typeof ( ulong ) )
58
56
writer . Write ( Convert . ToUInt64 ( value ) ) ;
59
57
else if ( underlyingType == typeof ( uint ) )
60
58
writer . WritePacked ( Convert . ToUInt32 ( value ) ) ;
61
59
else if ( underlyingType == typeof ( int ) )
62
60
writer . WritePacked ( Convert . ToInt32 ( value ) ) ;
61
+ else if ( underlyingType == typeof ( long ) )
62
+ throw new NotSupportedException ( "long enum types are not supported at the moment." ) ;
63
63
else
64
64
throw new ArgumentException ( "Unknown underlying type for " + enumType . Name ) ;
65
65
}
You can’t perform that action at this time.
0 commit comments