Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299324
b: refs/heads/master
c: 09c79b6
h: refs/heads/master
v: v3
  • Loading branch information
Jesper Juhl authored and James Morris committed Apr 18, 2012
1 parent 96d3519 commit 80a5a2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 86812bb0de1a3758dc6c7aa01a763158a7c0638a
refs/heads/master: 09c79b60960bdd4b00916219402eabfa5e479c5a
5 changes: 3 additions & 2 deletions trunk/lib/mpi/mpi-bit.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ int mpi_rshift(MPI x, MPI a, unsigned n)
*/
int mpi_lshift_limbs(MPI a, unsigned int count)
{
mpi_ptr_t ap = a->d;
int n = a->nlimbs;
const int n = a->nlimbs;
mpi_ptr_t ap;
int i;

if (!count || !n)
Expand All @@ -187,6 +187,7 @@ int mpi_lshift_limbs(MPI a, unsigned int count)
if (RESIZE_IF_NEEDED(a, n + count) < 0)
return -ENOMEM;

ap = a->d;
for (i = n - 1; i >= 0; i--)
ap[i + count] = ap[i];
for (i = 0; i < count; i++)
Expand Down

0 comments on commit 80a5a2e

Please sign in to comment.