Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0d264bf0 authored by Tao Bao's avatar Tao Bao Committed by Gerrit Code Review
Browse files

Merge "Checking unsigned variable less than zero"

parents 577c6688 8524fadd
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
  }