]> granicus.if.org Git - php/commitdiff
Fix compile failure with GCC 4.0.x
authorfoobar <sniper@php.net>
Fri, 5 Aug 2005 22:28:23 +0000 (22:28 +0000)
committerfoobar <sniper@php.net>
Fri, 5 Aug 2005 22:28:23 +0000 (22:28 +0000)
TSRM/TSRM.h

index cbc9cf81c73de963e6562bd5c6b195a725b87dc5..b2868730e5123b7707fed863602288f694a2afa0 100644 (file)
@@ -143,7 +143,7 @@ TSRM_API void tsrm_free_interpreter_context(void *context);
 
 #define TSRMLS_FETCH()                 void ***tsrm_ls = (void ***) ts_resource_ex(0, NULL)
 #define TSRMLS_FETCH_FROM_CTX(ctx)     void ***tsrm_ls = (void ***) ctx
-#define TSRMLS_SET_CTX(ctx)            (void ***) ctx = tsrm_ls
+#define TSRMLS_SET_CTX(ctx)            ctx = (void ***) tsrm_ls
 #define TSRMG(id, type, element)       (((type) (*((void ***) tsrm_ls))[TSRM_UNSHUFFLE_RSRC_ID(id)])->element)
 #define TSRMLS_D       void ***tsrm_ls
 #define TSRMLS_DC      , TSRMLS_D