Skip to content

Commit

Permalink
[CODEQUALITY]: bigdecimal initialization code syntax fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SzigetiJ committed Feb 5, 2024
1 parent fd041a5 commit ac331cc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/bigdecimal128_add_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ bool test_sub0() {

bool test_sub_approx0() {
BigDecimal128 a = {
{1}, 0};
{{1}}, 0};
BigDecimal128 b = {
{2}, 0};
{{2}}, 0};
BigDecimal128 c = {
{9}, 0};
{{9}}, 0};

bool pass = true;
for (int i = 1; pass && i < 3 * 128 / 10 + 1; ++i) {
Expand All @@ -129,9 +129,9 @@ bool test_sub_approx0() {

bool test_add_safe0(bool add, bool inverta, bool invertb) {
BigDecimal128 a = {
{1}, 0};
{{1}}, 0};
BigDecimal128 b = {
{1}, 0};
{{1}}, 0};
BigDecimal128 sum;

int loops = 128;
Expand Down

0 comments on commit ac331cc

Please sign in to comment.