From: Nikita Popov Date: Tue, 2 Feb 2021 15:43:43 +0000 (+0100) Subject: Remove unnecessary cast in snmp_set_oid_output_format X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b20362c24b673baf4143410e25181d05f4b940d2;p=php Remove unnecessary cast in snmp_set_oid_output_format This cast isn't needed, and could result in the ValueError being skipped due to truncation. --- diff --git a/ext/snmp/snmp.c b/ext/snmp/snmp.c index 0925d345cc..35d19c8738 100644 --- a/ext/snmp/snmp.c +++ b/ext/snmp/snmp.c @@ -1358,7 +1358,7 @@ PHP_FUNCTION(snmp_set_oid_output_format) RETURN_THROWS(); } - switch((int) a1) { + switch (a1) { case NETSNMP_OID_OUTPUT_SUFFIX: case NETSNMP_OID_OUTPUT_MODULE: case NETSNMP_OID_OUTPUT_FULL: