diff options
author | Tao Bao <tbao@google.com> | 2017-03-23 20:55:35 +0100 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-03-23 20:55:35 +0100 |
commit | 0d264bf088960285bc9f4e31250a9a3bfe8e03bf (patch) | |
tree | a897e3d5c891182867dd5206a5591079b2924db4 | |
parent | Merge "Fixed scanf modifier" (diff) | |
parent | Checking unsigned variable less than zero (diff) | |
download | android_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 |
Diffstat (limited to '')
-rw-r--r-- | asn1_decoder.cpp | 4 |
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; } |