Skip to content

Commit e3e4d1b

Browse files
committed
revert stream cast
1 parent d4b673a commit e3e4d1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/php_streams.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ PHPAPI php_stream *_php_stream_alloc(php_stream_ops *ops, void *abstract,
242242
END_EXTERN_C()
243243
#define php_stream_alloc(ops, thisptr, persistent_id, mode) _php_stream_alloc((ops), (thisptr), (persistent_id), (mode) STREAMS_CC TSRMLS_CC)
244244

245-
#define php_stream_get_resource_id(stream) ((php_stream *)(stream))->rsrc_id
245+
#define php_stream_get_resource_id(stream) (stream)->rsrc_id
246246
#if ZEND_DEBUG
247247
/* use this to tell the stream that it is OK if we don't explicitly close it */
248248
# define php_stream_auto_cleanup(stream) { (stream)->__exposed++; }

0 commit comments

Comments
 (0)