Skip to content

Commit

Permalink
Fix: Cast in sum_i8_haswell
Browse files Browse the repository at this point in the history
  • Loading branch information
ashvardanian committed Nov 4, 2024
1 parent 617e1f7 commit 0ce4024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/simsimd/elementwise.h
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ SIMSIMD_PUBLIC void simsimd_sum_i8_haswell(simsimd_i8_t const *a, simsimd_i8_t c
for (; i < n; ++i) {
simsimd_f32_t ai = a[i], bi = b[i];
simsimd_f32_t sum = ai + bi;
SIMSIMD_F32_TO_U8(sum, result + i);
SIMSIMD_F32_TO_I8(sum, result + i);
}
}

Expand Down

0 comments on commit 0ce4024

Please sign in to comment.