]> granicus.if.org Git - php/commitdiff
- silent compiler warning
authorPierre Joye <pajoye@php.net>
Mon, 20 Apr 2009 08:28:44 +0000 (08:28 +0000)
committerPierre Joye <pajoye@php.net>
Mon, 20 Apr 2009 08:28:44 +0000 (08:28 +0000)
main/streams/cast.c

index 5e61357537889c28522adfd432db5bd9780088d0..accc21725ca76ae631c05c554ec820f0297e735f 100644 (file)
@@ -219,7 +219,7 @@ PHPAPI int _php_stream_cast(php_stream *stream, int castas, void **ret, int show
                                if (ret != SUCCESS) {
                                        php_stream_close(newstream);
                                } else {
-                                       int retcode = php_stream_cast(newstream, castas | flags, ret, show_err);
+                                       int retcode = php_stream_cast(newstream, castas | flags, (void**)ret, show_err);
 
                                        if (retcode == SUCCESS)
                                                rewind(*(FILE**)ret);