summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikhail Lappo <miklelappo@gmail.com>2017-03-23 17:07:39 +0100
committerMikhail Lappo <miklelappo@gmail.com>2017-03-23 17:07:39 +0100
commit8524faddd3ab954893312c249c277981e6c26d75 (patch)
tree965f7ca96e76297a82e92a0c633f5cb2ab3d2a63
parentFixed scanf modifier (diff)
downloadandroid_bootable_recovery-8524faddd3ab954893312c249c277981e6c26d75.tar
android_bootable_recovery-8524faddd3ab954893312c249c277981e6c26d75.tar.gz
android_bootable_recovery-8524faddd3ab954893312c249c277981e6c26d75.tar.bz2
android_bootable_recovery-8524faddd3ab954893312c249c277981e6c26d75.tar.lz
android_bootable_recovery-8524faddd3ab954893312c249c277981e6c26d75.tar.xz
android_bootable_recovery-8524faddd3ab954893312c249c277981e6c26d75.tar.zst
android_bootable_recovery-8524faddd3ab954893312c249c277981e6c26d75.zip
Diffstat (limited to '')
-rw-r--r--asn1_decoder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/asn1_decoder.cpp b/asn1_decoder.cpp
index a9dfccc58..285214f16 100644
--- a/asn1_decoder.cpp
+++ b/asn1_decoder.cpp
@@ -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;
}