Partially revert d4d5e29

This commit is contained in:
Samuel Moelius 2023-05-19 19:02:30 -04:00 committed by Andrew Hlynskyi
parent 144c096a27
commit 41ec8b4166
4 changed files with 22 additions and 17 deletions

View file

@ -4124,11 +4124,7 @@ void ts_query_cursor_set_max_start_depth(
TSQueryCursor *self,
uint32_t max_start_depth
) {
if (max_start_depth == 0) {
self->max_start_depth = UINT32_MAX;
} else {
self->max_start_depth = max_start_depth;
}
self->max_start_depth = max_start_depth;
}
#undef LOG