Browse Source

fixbug: HVLBuf::pop_front

hewei.it 4 years ago
parent
commit
f87f76cd09
1 changed files with 1 additions and 1 deletions
  1. 1 1
      base/hbuf.h

+ 1 - 1
base/hbuf.h

@@ -142,7 +142,7 @@ public:
                 memcpy(ptr, data(), len);
             }
             _offset += len;
-            if (_offset >= len) _offset = 0;
+            if (_offset >= this->len) _offset = 0;
             _size   -= len;
         }
     }