Skip to content

Commit 46e4d87

Browse files
committed
Merge pull request #964
2 parents 4a8a55a + b8b8b44 commit 46e4d87

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

php_phongo_structs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ typedef struct {
5858
uint32_t server_id;
5959
bool advanced;
6060
php_phongo_bson_state visitor_data;
61-
int got_iterator;
61+
bool got_iterator;
6262
long current;
6363
char* database;
6464
char* collection;

src/MongoDB/Cursor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ static zend_object_iterator* php_phongo_cursor_get_iterator(zend_class_entry* ce
193193
return NULL;
194194
}
195195

196-
cursor->got_iterator = 1;
196+
cursor->got_iterator = true;
197197

198198
cursor_it = ecalloc(1, sizeof(php_phongo_cursor_iterator));
199199
#if PHP_VERSION_ID >= 70000

0 commit comments

Comments
 (0)