Fix size argument for runtime::copyArray.

Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
This commit is contained in:
Roman Zulak 2016-09-28 19:23:57 -04:00 committed by sftnight
parent dde76efa31
commit 973e380989
2 changed files with 2 additions and 2 deletions

View File

@ -160,7 +160,7 @@ namespace cling {
///\param[in] size - size of the array.
///
template <typename T>
void copyArray(T* src, void* placement, int size) {
void copyArray(T* src, void* placement, std::size_t size) {
for (int i = 0; i < size; ++i)
new ((void*)(((T*)placement) + i)) T(src[i]);
}

View File

@ -299,7 +299,7 @@ namespace {
CallArgs.push_back(arrSizeExpr);
// 2.1) arrays:
// call copyArray(T* src, void* placement, int size)
// call copyArray(T* src, void* placement, size_t size)
Call = m_Sema->ActOnCallExpr(/*Scope*/0, m_UnresolvedCopyArray,
locStart, CallArgs, locEnd);