]> granicus.if.org Git - php/commitdiff
Added parentheses
authorDmitry Stogov <dmitry@zend.com>
Wed, 6 Jun 2018 12:29:59 +0000 (15:29 +0300)
committerDmitry Stogov <dmitry@zend.com>
Wed, 6 Jun 2018 12:29:59 +0000 (15:29 +0300)
main/php_streams.h

index 81a848a3b6b4790e1b000d3bbaead5de6acd89d6..e6361c4f94d07708fbb4fec2006df033a6487446 100644 (file)
@@ -413,7 +413,7 @@ END_EXTERN_C()
 /* whether or not locking is supported */
 #define PHP_STREAM_LOCK_SUPPORTED              1
 
-#define php_stream_supports_lock(stream)       _php_stream_set_option((stream), PHP_STREAM_OPTION_LOCKING, 0, (void *) PHP_STREAM_LOCK_SUPPORTED) == 0 ? 1 : 0
+#define php_stream_supports_lock(stream)       (_php_stream_set_option((stream), PHP_STREAM_OPTION_LOCKING, 0, (void *) PHP_STREAM_LOCK_SUPPORTED) == 0 ? 1 : 0)
 #define php_stream_lock(stream, mode)          _php_stream_set_option((stream), PHP_STREAM_OPTION_LOCKING, (mode), (void *) NULL)
 
 /* option code used by the php_stream_xport_XXX api */