Skip to content

Commit 4144414

Browse files
authored
Merge pull request #5613 from tautschnig/visual-studio-16.8
Visual Studio 16.8 has different floating point precision
2 parents 71e16e8 + d5912ec commit 4144414

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

jbmc/unit/java_bytecode/expr2java.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ TEST_CASE(
9999
#ifndef _MSC_VER
100100
REQUIRE(
101101
floating_point_to_java_string(value) == "0x1p+37f /* 1.37439e+11 */");
102+
#elif _MSC_VER >= 1928
103+
REQUIRE(
104+
floating_point_to_java_string(value) ==
105+
"0x1.0000000000000p+37f /* 1.37439e+11 */");
102106
#else
103107
REQUIRE(
104108
floating_point_to_java_string(value) ==
@@ -112,6 +116,10 @@ TEST_CASE(
112116
#ifndef _MSC_VER
113117
REQUIRE(
114118
floating_point_to_java_string(value) == "0x1p+37 /* 1.37439e+11 */");
119+
#elif _MSC_VER >= 1928
120+
REQUIRE(
121+
floating_point_to_java_string(value) ==
122+
"0x1.0000000000000p+37 /* 1.37439e+11 */");
115123
#else
116124
REQUIRE(
117125
floating_point_to_java_string(value) ==

0 commit comments

Comments
 (0)