Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@chromium.org>2015-02-11 09:16:26 +0300
committerAdam Langley <agl@google.com>2015-02-11 22:31:01 +0300
commitc9a202fee3632be4cb133996993949bdec548035 (patch)
tree762e03c99e20e0ae1f2045117343766fd5690ab8 /crypto/bn/mul.c
parentefec193d27e81cc4d25d0b04c89d4d0c155fcccf (diff)
Add in missing curly braces part 1.
Everything before crypto/ec. Change-Id: Icbfab8e4ffe5cc56bf465eb57d3fdad3959a085c Reviewed-on: https://boringssl-review.googlesource.com/3401 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto/bn/mul.c')
-rw-r--r--crypto/bn/mul.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/crypto/bn/mul.c b/crypto/bn/mul.c
index 80c62885..a17d766b 100644
--- a/crypto/bn/mul.c
+++ b/crypto/bn/mul.c
@@ -150,8 +150,9 @@ static BN_ULONG bn_sub_part_words(BN_ULONG *r, const BN_ULONG *a,
assert(cl >= 0);
c = bn_sub_words(r, a, b, cl);
- if (dl == 0)
+ if (dl == 0) {
return c;
+ }
r += cl;
a += cl;
@@ -330,8 +331,9 @@ static void bn_mul_recursive(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b, int n2,
/* Else do normal multiply */
if (n2 < BN_MUL_RECURSIVE_SIZE_NORMAL) {
bn_mul_normal(r, a, n2 + dna, b, n2 + dnb);
- if ((dna + dnb) < 0)
+ if ((dna + dnb) < 0) {
memset(&r[2 * n2 + dna + dnb], 0, sizeof(BN_ULONG) * -(dna + dnb));
+ }
return;
}