diff --git a/fifofast.h b/fifofast.h index c14e366..92c7f28 100644 --- a/fifofast.h +++ b/fifofast.h @@ -394,7 +394,7 @@ do{ \ if (btw > 0) { \ memcpy(&_id.data[_id.write], (newdata)+tocopy, btw); \ _id.write = btw; \ - _id.level += tocopy; \ + _id.level += btw; \ } \ }while(0)