summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-03-23 20:55:35 +0100
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-03-23 20:55:35 +0100
commit0d264bf088960285bc9f4e31250a9a3bfe8e03bf (patch)
treea897e3d5c891182867dd5206a5591079b2924db4
parentMerge "Fixed scanf modifier" (diff)
parentChecking unsigned variable less than zero (diff)
downloadandroid_bootable_recovery-0d264bf088960285bc9f4e31250a9a3bfe8e03bf.tar
android_bootable_recovery-0d264bf088960285bc9f4e31250a9a3bfe8e03bf.tar.gz
android_bootable_recovery-0d264bf088960285bc9f4e31250a9a3bfe8e03bf.tar.bz2
android_bootable_recovery-0d264bf088960285bc9f4e31250a9a3bfe8e03bf.tar.lz
android_bootable_recovery-0d264bf088960285bc9f4e31250a9a3bfe8e03bf.tar.xz
android_bootable_recovery-0d264bf088960285bc9f4e31250a9a3bfe8e03bf.tar.zst
android_bootable_recovery-0d264bf088960285bc9f4e31250a9a3bfe8e03bf.zip
-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;
}