From b20362c24b673baf4143410e25181d05f4b940d2 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Tue, 2 Feb 2021 16:43:43 +0100 Subject: 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. --- ext/snmp/snmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.1