diff --git a/SharpSnmpLib/Integer32.cs b/SharpSnmpLib/Integer32.cs index df468b83..610eb738 100644 --- a/SharpSnmpLib/Integer32.cs +++ b/SharpSnmpLib/Integer32.cs @@ -132,11 +132,6 @@ public int ToInt32() /// public ErrorCode ToErrorCode() { - if (_int > 19 || _int < 0) - { - throw new InvalidCastException(); - } - return (ErrorCode)_int; }