summaryrefslogtreecommitdiffstats
path: root/asn1_decoder.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-03-23 21:02:30 +0100
committerandroid-build-merger <android-build-merger@google.com>2017-03-23 21:02:30 +0100
commitcd03df06523208b4fa4c8401a589a4f06ffedf93 (patch)
tree478544d5ed51ed57b097faed5f6c5c8f870cea00 /asn1_decoder.cpp
parentMerge "Fixed scanf modifier" am: 577c668861 (diff)
parentMerge "Checking unsigned variable less than zero" (diff)
downloadandroid_bootable_recovery-cd03df06523208b4fa4c8401a589a4f06ffedf93.tar
android_bootable_recovery-cd03df06523208b4fa4c8401a589a4f06ffedf93.tar.gz
android_bootable_recovery-cd03df06523208b4fa4c8401a589a4f06ffedf93.tar.bz2
android_bootable_recovery-cd03df06523208b4fa4c8401a589a4f06ffedf93.tar.lz
android_bootable_recovery-cd03df06523208b4fa4c8401a589a4f06ffedf93.tar.xz
android_bootable_recovery-cd03df06523208b4fa4c8401a589a4f06ffedf93.tar.zst
android_bootable_recovery-cd03df06523208b4fa4c8401a589a4f06ffedf93.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;
}