@@ -41,8 +41,8 @@ def asof_join_backward_{{on_dtype}}_by_{{by_dtype}}(
4141 Py_ssize_t left_pos, right_pos, left_size, right_size, found_right_pos
4242 ndarray[int64_t] left_indexer, right_indexer
4343 bint has_tolerance = 0
44- {{on_dtype}} tolerance_
45- {{on_dtype}} diff
44+ {{on_dtype}} tolerance_ = 0
45+ {{on_dtype}} diff = 0
4646 {{table_type}} hash_table
4747 {{by_dtype}} by_value
4848
@@ -106,8 +106,8 @@ def asof_join_forward_{{on_dtype}}_by_{{by_dtype}}(
106106 Py_ssize_t left_pos, right_pos, left_size, right_size, found_right_pos
107107 ndarray[int64_t] left_indexer, right_indexer
108108 bint has_tolerance = 0
109- {{on_dtype}} tolerance_
110- {{on_dtype}} diff
109+ {{on_dtype}} tolerance_ = 0
110+ {{on_dtype}} diff = 0
111111 {{table_type}} hash_table
112112 {{by_dtype}} by_value
113113
@@ -236,8 +236,8 @@ def asof_join_backward_{{on_dtype}}(
236236 Py_ssize_t left_pos, right_pos, left_size, right_size
237237 ndarray[int64_t] left_indexer, right_indexer
238238 bint has_tolerance = 0
239- {{on_dtype}} tolerance_
240- {{on_dtype}} diff
239+ {{on_dtype}} tolerance_ = 0
240+ {{on_dtype}} diff = 0
241241
242242 # if we are using tolerance, set our objects
243243 if tolerance is not None:
@@ -290,8 +290,8 @@ def asof_join_forward_{{on_dtype}}(
290290 Py_ssize_t left_pos, right_pos, left_size, right_size
291291 ndarray[int64_t] left_indexer, right_indexer
292292 bint has_tolerance = 0
293- {{on_dtype}} tolerance_
294- {{on_dtype}} diff
293+ {{on_dtype}} tolerance_ = 0
294+ {{on_dtype}} diff = 0
295295
296296 # if we are using tolerance, set our objects
297297 if tolerance is not None:
@@ -371,4 +371,3 @@ def asof_join_nearest_{{on_dtype}}(
371371 return left_indexer, right_indexer
372372
373373{{endfor}}
374-
0 commit comments