]> granicus.if.org Git - php/commitdiff
revert stream cast
authorMichael Wallner <mike@php.net>
Tue, 10 Sep 2013 11:13:09 +0000 (13:13 +0200)
committerMichael Wallner <mike@php.net>
Tue, 10 Sep 2013 11:13:09 +0000 (13:13 +0200)
main/php_streams.h

index c9732b484849ab84f12b606d4c9472ce545b256e..c56014c62e17f022ebb9574ac2e530cc77cf1e82 100644 (file)
@@ -242,7 +242,7 @@ PHPAPI php_stream *_php_stream_alloc(php_stream_ops *ops, void *abstract,
 END_EXTERN_C()
 #define php_stream_alloc(ops, thisptr, persistent_id, mode)    _php_stream_alloc((ops), (thisptr), (persistent_id), (mode) STREAMS_CC TSRMLS_CC)
 
-#define php_stream_get_resource_id(stream)             ((php_stream *)(stream))->rsrc_id
+#define php_stream_get_resource_id(stream)             (stream)->rsrc_id
 #if ZEND_DEBUG
 /* use this to tell the stream that it is OK if we don't explicitly close it */
 # define php_stream_auto_cleanup(stream)       { (stream)->__exposed++; }