Index: include/private/SkTArray.h |
diff --git a/include/private/SkTArray.h b/include/private/SkTArray.h |
index 5330e4930725cf5bbf5945e66cf847da68d09fba..06b9241234a8ded356cee4465722c006a6ac1c7d 100644 |
--- a/include/private/SkTArray.h |
+++ b/include/private/SkTArray.h |
@@ -185,7 +185,7 @@ public: |
SkASSERT(n >= 0); |
T* newTs = reinterpret_cast<T*>(this->push_back_raw(n)); |
for (int i = 0; i < n; ++i) { |
- new (newTs[i]) T(t); |
+ new (newTs + i) T(t); |
} |
return newTs; |
} |