Fix size argument for runtime::copyArray.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
This commit is contained in:
parent
dde76efa31
commit
973e380989
@ -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]);
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user