Permalink
Browse files

Fix SHR op to be a true logical shift.

  • Loading branch information...
1 parent 23c85b8 commit fd75b550df5bb008f559b28d2f115f22e7b8ea32 Steve Kerrison committed Dec 1, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 module_matrix/src/matrix_worker.c
@@ -210,7 +210,7 @@ void matrix_sca_worker_shr(int ptA, int S, int ptC, int ptOps, short offset, sho
*ops = (int *)ptOps, base;
for (base = offset; base < offset + len; base += 1)
{
- C[base] = A[base] >> S;
+ C[base] = (unsigned)A[base] >> S;
}
*ops = len;
return;

0 comments on commit fd75b55

Please sign in to comment.