Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ambiguous call to min function (#344)
The CsrMV function currently makes a call to min(int, uint32_t). Previously, clang headers only defined min(int, int), so this would cause the second argument to be implicitly cast to int. However, in the future Clang will add overloaded versions of min like min(uint32_t, uint32_t). This will make the call ambiguous, since the compiler does not know whether to cast the first argument to uint32_t, or to cast the second argument to int. This change adds an explicit cast here to prevent future problems.
- Loading branch information