diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2021-02-02 16:43:43 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2021-02-02 16:43:43 +0100 |
commit | b20362c24b673baf4143410e25181d05f4b940d2 (patch) | |
tree | 3a216df473b941b8798993cf020033def1b2c56a | |
parent | 0ec7bfaa43e8eaf23a35b2850e0b9085b380dd1f (diff) | |
download | php-git-b20362c24b673baf4143410e25181d05f4b940d2.tar.gz |
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.
-rw-r--r-- | ext/snmp/snmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
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: |