From de493313f847c093b4f58d3023d03eb50176a693 Mon Sep 17 00:00:00 2001 From: Konstantin Anisimov Date: Mon, 5 Dec 2016 15:57:59 +0300 Subject: [PATCH] RUNTIME: fix of InitInstance constructor parameter --- runtime/src/main/cpp/Memory.cpp | 2 +- runtime/src/main/cpp/Memory.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/src/main/cpp/Memory.cpp b/runtime/src/main/cpp/Memory.cpp index 882328e77af..61136f7b1b5 100644 --- a/runtime/src/main/cpp/Memory.cpp +++ b/runtime/src/main/cpp/Memory.cpp @@ -101,7 +101,7 @@ ObjHeader* AllocStringInstance( ObjHeader* InitInstance( ObjHeader** location, const TypeInfo* type_info, PlacementHint hint, - void (*ctor)(ObjHeader*)) { + ObjHeader* (*ctor)(ObjHeader*)) { ObjHeader* sentinel = reinterpret_cast(1); ObjHeader* value; // Wait until other initializers. diff --git a/runtime/src/main/cpp/Memory.h b/runtime/src/main/cpp/Memory.h index 51455522ce1..1b8275cd4b5 100644 --- a/runtime/src/main/cpp/Memory.h +++ b/runtime/src/main/cpp/Memory.h @@ -258,7 +258,7 @@ ObjHeader* AllocStringInstance(PlacementHint hint, const char* data, uint32_t length); ObjHeader* InitInstance( ObjHeader** location, const TypeInfo* type_info, PlacementHint hint, - void (*ctor)(ObjHeader*)); + ObjHeader* (*ctor)(ObjHeader*)); #ifdef __cplusplus }