Skip to content

Commit d093357

Browse files
authored
Merge pull request #253 from real-eren/fix-sparse-dotproducts-generic-casting
Fix: Types in sparse dot-products generic macro
2 parents 691a893 + 354a6b8 commit d093357

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/simsimd/sparse.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,8 @@ SIMSIMD_MAKE_INTERSECT_LINEAR(accurate, u32, size) // simsimd_intersect_u32_accu
187187
simsimd_##input_type##_t ai = a[i]; \
188188
simsimd_##input_type##_t bj = b[j]; \
189189
int matches = ai == bj; \
190-
simsimd_##counter_type##_t awi = load_and_convert(a_weights + i); \
191-
simsimd_##counter_type##_t bwi = load_and_convert(b_weights + i); \
190+
simsimd_##accumulator_type##_t awi = load_and_convert(a_weights + i); \
191+
simsimd_##accumulator_type##_t bwi = load_and_convert(b_weights + i); \
192192
weights_product += matches * awi * bwi; \
193193
intersection_size += matches; \
194194
i += ai < bj; \

0 commit comments

Comments
 (0)