commit e45976cd705d5ec847b7a7dd38dad11e6ad13f51
parent 575ac05d38e2946628bcf8ff3a4cbbfe7ec58955
Author: vaplv <vaplv@free.fr>
Date: Wed, 15 Jul 2015 18:04:37 +0200
Fix a free_list compilation error
The free_list header failed to compile with C++ compiler since the C++
standard does not allow the implicit cast from a void* to another type.
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
@@ -36,7 +36,7 @@ include(rcmake)
################################################################################
set(VERSION_MAJOR 0)
set(VERSION_MINOR 2)
-set(VERSION_PATCH 0)
+set(VERSION_PATCH 1)
set(VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH})
set(RSYS_FILES_SRC
diff --git a/src/free_list.h b/src/free_list.h
@@ -121,7 +121,7 @@ FLIST_FUNC__(add)(struct FLIST_TYPE__* list)
memset(&item, 0, sizeof(struct FITEM_TYPE));
id.index = list->nitems;
- list->items = MEM_REALLOC
+ list->items = (struct FITEM_TYPE*)MEM_REALLOC
(list->allocator,
list->items,
nitems_new * sizeof(struct FITEM_TYPE));