Merge "Checking unsigned variable less than zero" am: 0d264bf088 am: 957f6491f8
am: cd03df0652

Change-Id: Ic5bcbe14b6db759135274fd51a35703327c3826d
diff --git a/asn1_decoder.cpp b/asn1_decoder.cpp
index a9dfccc..285214f 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;
   }