Explorar o código

fixbug: HVLBuf::pop_front

hewei.it %!s(int64=4) %!d(string=hai) anos
pai
achega
f87f76cd09
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
         }
     }