diff options
author | Narayan Kamath <narayan@google.com> | 2014-05-06 15:14:54 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-05-06 15:14:55 +0000 |
commit | 32ec257fae8b9d9bede551f00400f0a5216ab6b9 (patch) | |
tree | 82b75fef1e69065cb6d3ab04362b99217a9e7fa5 /luni/src | |
parent | b7bef747246ee8042a5b4fbc9a323af6eecdaf30 (diff) | |
parent | 6bc20cd8fc6784a75158d8f1db27802a12b28f94 (diff) | |
download | libcore-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.cpp | 2 |
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) |