summaryrefslogtreecommitdiffstats
path: root/luni/src
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2014-05-06 15:14:54 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-05-06 15:14:55 +0000
commit32ec257fae8b9d9bede551f00400f0a5216ab6b9 (patch)
tree82b75fef1e69065cb6d3ab04362b99217a9e7fa5 /luni/src
parentb7bef747246ee8042a5b4fbc9a323af6eecdaf30 (diff)
parent6bc20cd8fc6784a75158d8f1db27802a12b28f94 (diff)
downloadlibcore-32ec257fae8b9d9bede551f00400f0a5216ab6b9.zip
libcore-32ec257fae8b9d9bede551f00400f0a5216ab6b9.tar.gz
libcore-32ec257fae8b9d9bede551f00400f0a5216ab6b9.tar.bz2
Merge "Fix BN to use correct size of array"
Diffstat (limited to 'luni/src')
-rw-r--r--luni/src/main/native/java_math_NativeBN.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/luni/src/main/native/java_math_NativeBN.cpp b/luni/src/main/native/java_math_NativeBN.cpp
index d0a03b7..be87ea6 100644
--- a/luni/src/main/native/java_math_NativeBN.cpp
+++ b/luni/src/main/native/java_math_NativeBN.cpp
@@ -212,7 +212,7 @@ static void NativeBN_litEndInts2bn(JNIEnv* env, jclass, jintArray arr, int len,
#else
int i = len; do { i--; ret->d[i] = tmpInts[i]; } while (i > 0);
#endif
- ret->top = len;
+ ret->top = wlen;
ret->neg = neg;
// need to call this due to clear byte at top if avoiding
// having the top bit set (-ve number)