diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-05-22 19:43:28 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-05-22 19:43:28 +0000 | 
| commit | b5630dbadf9a2a06754194387d6b0fd9962a67f1 (patch) | |
| tree | 3fe1e2bc0dc2823ab21f06959fbb3eaca317ea29 /unittests/Support/ScaledNumberTest.cpp | |
| parent | 7af96fb3afd6725a2824a0a5ca5dad34e5e0b056 (diff) | |
Notes
Diffstat (limited to 'unittests/Support/ScaledNumberTest.cpp')
| -rw-r--r-- | unittests/Support/ScaledNumberTest.cpp | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/unittests/Support/ScaledNumberTest.cpp b/unittests/Support/ScaledNumberTest.cpp index 2f38b2a40fb8..9e3f6de6bd17 100644 --- a/unittests/Support/ScaledNumberTest.cpp +++ b/unittests/Support/ScaledNumberTest.cpp @@ -335,10 +335,12 @@ TEST(ScaledNumberHelpersTest, matchScales) {      EXPECT_EQ(SOut, matchScales(LDx, LSx, RDx, RSx));                          \      EXPECT_EQ(LDy, LDx);                                                       \      EXPECT_EQ(RDy, RDx);                                                       \ -    if (LDy)                                                                   \ +    if (LDy) {                                                                 \        EXPECT_EQ(Sy, LSx);                                                      \ -    if (RDy)                                                                   \ +    }                                                                          \ +    if (RDy) {                                                                 \        EXPECT_EQ(Sy, RSx);                                                      \ +    }                                                                          \    } while (false)    MATCH_SCALES(uint32_t, 0, 0, 0, 0, 0, 0, 0);  | 
