Skip to content

Commit 22d4282

Browse files
author
Harald Radi
committed
cast error
1 parent 5f51da8 commit 22d4282

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/com/com.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ typedef struct comval_ {
4141
#define RETURN_COM(o) RETVAL_COM(o) \
4242
return;
4343

44-
#define ALLOC_COM(z) (z) = emalloc(sizeof(comval))
44+
#define ALLOC_COM(z) (z) = (comval *) emalloc(sizeof(comval))
4545
#define IS_COM php_COM_get_le_comval()
4646

4747
#define C_HASTLIB(x) ((x)->typelib)

ext/rpc/com/com_wrapper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ typedef struct comval_ {
4141
#define RETURN_COM(o) RETVAL_COM(o) \
4242
return;
4343

44-
#define ALLOC_COM(z) (z) = emalloc(sizeof(comval))
44+
#define ALLOC_COM(z) (z) = (comval *) emalloc(sizeof(comval))
4545
#define IS_COM php_COM_get_le_comval()
4646

4747
#define C_HASTLIB(x) ((x)->typelib)

0 commit comments

Comments
 (0)