Checking unsigned variable less than zero
Unsinged variable can not be less than zero Makes sense only to check if it is equal
This commit is contained in:
parent
17e6d3f3bc
commit
8524faddd3
1 changed files with 2 additions and 2 deletions
|
@ -19,14 +19,14 @@
|
|||
#include <stdint.h>
|
||||
|
||||
int asn1_context::peek_byte() const {
|
||||
if (length_ <= 0) {
|
||||
if (length_ == 0) {
|
||||
return -1;
|
||||
}
|
||||
return *p_;
|
||||
}
|
||||
|
||||
int asn1_context::get_byte() {
|
||||
if (length_ <= 0) {
|
||||
if (length_ == 0) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue