comparison vamp-client/CapnpRRClient.h @ 260:3db4c7998faf

Fix compiler warnings
author Chris Cannam <cannam@all-day-breakfast.com>
date Tue, 15 May 2018 11:12:37 +0100
parents df65480a08de
children c9f63ca1914d
comparison
equal deleted inserted replaced
259:b10018fcd5eb 260:3db4c7998faf
363 // We could do this whole thing with fewer copies, but let's 363 // We could do this whole thing with fewer copies, but let's
364 // see whether it matters first 364 // see whether it matters first
365 size_t wordSize = sizeof(capnp::word); 365 size_t wordSize = sizeof(capnp::word);
366 size_t words = buffer.size() / wordSize; 366 size_t words = buffer.size() / wordSize;
367 kj::Array<capnp::word> karr(kj::heapArray<capnp::word>(words)); 367 kj::Array<capnp::word> karr(kj::heapArray<capnp::word>(words));
368 memcpy(karr.begin(), buffer.data(), words * wordSize); 368 memcpy(reinterpret_cast<char *>(karr.begin()),
369 buffer.data(),
370 words * wordSize);
369 return karr; 371 return karr;
370 } 372 }
371 373
372 void 374 void
373 checkServerOK() { 375 checkServerOK() {