diff --git a/gemma/ops.h b/gemma/ops.h index 1c09409..0c29cda 100644 --- a/gemma/ops.h +++ b/gemma/ops.h @@ -181,7 +181,7 @@ HWY_INLINE void MatVecLoop(const ArrayT& mat, const size_t mat_ofs, const VecT* HWY_RESTRICT vec_aligned, float* HWY_RESTRICT out) { MatVecAddLoop( - mat, mat_ofs, vec_aligned, /*add=*/(VecT*)nullptr, out); + mat, mat_ofs, vec_aligned, /*add=*/static_cast(nullptr), out); } // Simple version without tiling nor threading, but two offsets/outputs. @@ -420,7 +420,8 @@ HWY_INLINE void MatVec(const ArrayT& mat, const size_t mat_ofs, const VecT* HWY_RESTRICT const vec_aligned, float* HWY_RESTRICT out, hwy::ThreadPool& pool) { MatVecAdd( - mat, mat_ofs, vec_aligned, /*add=*/(VecT *)nullptr, out, pool); + mat, mat_ofs, vec_aligned, /*add=*/static_cast(nullptr), out, + pool); } template