Skip to content

Commit

Permalink
Fix APCIterator
Browse files Browse the repository at this point in the history
Wrong parens...
  • Loading branch information
nikic committed Aug 29, 2015
1 parent 334a4e7 commit c92e2f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions apc_iterator.c
Expand Up @@ -137,6 +137,7 @@ static zend_object* apc_iterator_create(zend_class_entry *ce) {
(apc_iterator_t*) emalloc(sizeof(apc_iterator_t) + zend_object_properties_size(ce));

zend_object_std_init(&iterator->obj, ce);
object_properties_init(&iterator->obj, ce);

iterator->initialized = 0;
iterator->stack = NULL;
Expand Down Expand Up @@ -641,6 +642,6 @@ int apc_iterator_delete(zval *zobj) {
* tab-width: 4
* c-basic-offset: 4
* End:
* vim>600: expandtab sw=4 ts=4 sts=4 fdm=marker
* vim<600: expandtab sw=4 ts=4 sts=4
* vim>600: noexpandtab sw=4 ts=4 sts=4 fdm=marker
* vim<600: noexpandtab sw=4 ts=4 sts=4
*/
2 changes: 1 addition & 1 deletion apc_iterator.h
Expand Up @@ -86,7 +86,7 @@ typedef struct _apc_iterator_t {
} apc_iterator_t;
/* }}} */

#define apc_iterator_fetch_from(o) ((apc_iterator_t*)((char*)o) - XtOffsetOf(apc_iterator_t, obj))
#define apc_iterator_fetch_from(o) ((apc_iterator_t*)((char*)o - XtOffsetOf(apc_iterator_t, obj)))
#define apc_iterator_fetch(z) apc_iterator_fetch_from(Z_OBJ_P(z))

/* {{{ apc_iterator_item */
Expand Down

0 comments on commit c92e2f6

Please sign in to comment.