diff options
author | 2012-05-07 15:03:39 +0200 | |
---|---|---|
committer | 2012-05-07 15:03:42 +0200 | |
commit | 436281c9a110ff16c1fb396add5dd944ee92cf36 (patch) | |
tree | afda86db9e89d41ca49a8311673b994a82d16d42 /lib/mpi/mpi-bit.c | |
parent | Merge branch 'tip/sched/core' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace into sched/core (diff) | |
parent | IA32 emulation: Fix build problem for modular ia32 a.out support (diff) | |
download | linux-dev-436281c9a110ff16c1fb396add5dd944ee92cf36.tar.xz linux-dev-436281c9a110ff16c1fb396add5dd944ee92cf36.zip |
Merge branch 'linus' into sched/core
Merge reason: We were on a pretty old base, refresh before moving on.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
-rw-r--r-- | lib/mpi/mpi-bit.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/mpi/mpi-bit.c b/lib/mpi/mpi-bit.c index 2f526627e4f5..0c505361da19 100644 --- a/lib/mpi/mpi-bit.c +++ b/lib/mpi/mpi-bit.c @@ -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) @@ -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++) |