Fix ringbuffer copy constructor
This commit is contained in:
@@ -17,7 +17,7 @@ export class RingBuffer<T extends Lengthwise> {
|
|||||||
if (ringBuffer) {
|
if (ringBuffer) {
|
||||||
this.items = ringBuffer.toArray()
|
this.items = ringBuffer.toArray()
|
||||||
this.end = this.items.length
|
this.end = this.items.length
|
||||||
this.usage = this.items.length
|
this.usage = ringBuffer.usage
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user