Merge "Checking unsigned variable less than zero"
This commit is contained in:
+2
-2
@@ -19,14 +19,14 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
int asn1_context::peek_byte() const {
|
int asn1_context::peek_byte() const {
|
||||||
if (length_ <= 0) {
|
if (length_ == 0) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
return *p_;
|
return *p_;
|
||||||
}
|
}
|
||||||
|
|
||||||
int asn1_context::get_byte() {
|
int asn1_context::get_byte() {
|
||||||
if (length_ <= 0) {
|
if (length_ == 0) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user