diff --git a/src/system/runtime_loader/elf_tls.cpp b/src/system/runtime_loader/elf_tls.cpp index 4b587affef..c3dbc70925 100644 --- a/src/system/runtime_loader/elf_tls.cpp +++ b/src/system/runtime_loader/elf_tls.cpp @@ -288,7 +288,7 @@ DynamicThreadVector::_ResizeVector(unsigned minimumSize) return B_NO_MEMORY; *fVector = (TLSBlock*)newVector; - memset(*fVector + oldSize + 1, 0, (size - oldSize) * sizeof(TLSBlock)); + memset((void*)(*fVector + oldSize + 1), 0, (size - oldSize) * sizeof(TLSBlock)); if (fGeneration == NULL) { fGeneration = new Generation; if (fGeneration == NULL)