aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-04-16 02:03:58 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-04-16 02:04:52 +0200
commit943dc3fa216913bff7e2dd267a9f52f082c04663 (patch)
tree6f634cd5aa5468afcfab32630ed7adeede001665
parent44fb01e8a8417fadd79ba347c9ad3f0bb3a1d0b8 (diff)
Propperly cast void pointer in sqfs_object_t inline function
Otherwise, C++ compilers will scream. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
-rw-r--r--include/sqfs/predef.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sqfs/predef.h b/include/sqfs/predef.h
index 0e81933..e0afac4 100644
--- a/include/sqfs/predef.h
+++ b/include/sqfs/predef.h
@@ -134,7 +134,7 @@ typedef struct sqfs_object_t {
*/
static SQFS_INLINE void sqfs_destroy(void *obj)
{
- ((sqfs_object_t *)obj)->destroy(obj);
+ ((sqfs_object_t *)obj)->destroy((sqfs_object_t *)obj);
}
/**
@@ -150,7 +150,7 @@ static SQFS_INLINE void sqfs_destroy(void *obj)
static SQFS_INLINE void *sqfs_copy(const void *obj)
{
if (((sqfs_object_t *)obj)->copy != NULL)
- return ((sqfs_object_t *)obj)->copy(obj);
+ return ((sqfs_object_t *)obj)->copy((sqfs_object_t *)obj);
return NULL;
}