Skip to content

Commit 325f8f0

Browse files
committed
ext/soap: Remove cast from macro
Move it to the one call site that requires it
1 parent 0e91b4f commit 325f8f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/soap/php_sdl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,7 @@ static sdlPtr load_wsdl(zval *this_ptr, char *struri)
11741174
smart_str_appendc(buf,(char)((val >> 16) & 0xff)); \
11751175
smart_str_appendc(buf,(char)((val >> 24) & 0xff));
11761176
#define WSDL_CACHE_PUT_1(val,buf) smart_str_appendc(buf,val);
1177-
#define WSDL_CACHE_PUT_N(val,n,buf) smart_str_appendl(buf,(char*)val,n);
1177+
#define WSDL_CACHE_PUT_N(val,n,buf) smart_str_appendl(buf,val,n);
11781178

11791179
#define WSDL_NO_STRING_MARKER 0x7fffffff
11801180

@@ -2117,7 +2117,7 @@ static void add_sdl_to_cache(const char *fn, const char *uri, time_t t, sdlPtr s
21172117
WSDL_CACHE_PUT_N("wsdl", 4, out);
21182118
WSDL_CACHE_PUT_1(WSDL_CACHE_VERSION,out);
21192119
WSDL_CACHE_PUT_1(0,out);
2120-
WSDL_CACHE_PUT_N(&t, sizeof(t), out);
2120+
WSDL_CACHE_PUT_N((char*)&t, sizeof(t), out);
21212121

21222122
sdl_serialize_string(uri, out);
21232123
sdl_serialize_string(sdl->source, out);

0 commit comments

Comments
 (0)