Skip to content
Snippets Groups Projects
Commit 7d635773 authored by Richard Linden's avatar Richard Linden
Browse files
parents 35b591a4 0e29315e
No related branches found
No related tags found
No related merge requests found
...@@ -95,7 +95,7 @@ namespace LLTrace ...@@ -95,7 +95,7 @@ namespace LLTrace
void addSamples(const AccumulatorBuffer<ACCUMULATOR>& other, EBufferAppendType append_type) void addSamples(const AccumulatorBuffer<ACCUMULATOR>& other, EBufferAppendType append_type)
{ {
llassert(mStorageSize >= sNextStorageSlot && other.mStorageSize > sNextStorageSlot); llassert(mStorageSize >= sNextStorageSlot && other.mStorageSize >= sNextStorageSlot);
for (size_t i = 0; i < sNextStorageSlot; i++) for (size_t i = 0; i < sNextStorageSlot; i++)
{ {
mStorage[i].addSamples(other.mStorage[i], append_type); mStorage[i].addSamples(other.mStorage[i], append_type);
...@@ -104,7 +104,7 @@ namespace LLTrace ...@@ -104,7 +104,7 @@ namespace LLTrace
void copyFrom(const AccumulatorBuffer<ACCUMULATOR>& other) void copyFrom(const AccumulatorBuffer<ACCUMULATOR>& other)
{ {
llassert(mStorageSize >= sNextStorageSlot && other.mStorageSize > sNextStorageSlot); llassert(mStorageSize >= sNextStorageSlot && other.mStorageSize >= sNextStorageSlot);
for (size_t i = 0; i < sNextStorageSlot; i++) for (size_t i = 0; i < sNextStorageSlot; i++)
{ {
mStorage[i] = other.mStorage[i]; mStorage[i] = other.mStorage[i];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment