Skip to content

Commit b20362c

Browse files
committed
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.
1 parent 0ec7bfa commit b20362c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/snmp/snmp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1358,7 +1358,7 @@ PHP_FUNCTION(snmp_set_oid_output_format)
13581358
RETURN_THROWS();
13591359
}
13601360

1361-
switch((int) a1) {
1361+
switch (a1) {
13621362
case NETSNMP_OID_OUTPUT_SUFFIX:
13631363
case NETSNMP_OID_OUTPUT_MODULE:
13641364
case NETSNMP_OID_OUTPUT_FULL:

0 commit comments

Comments
 (0)