We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c85c62 commit c8a4cd6Copy full SHA for c8a4cd6
1 file changed
test/test_isqrt.cpp
@@ -231,6 +231,12 @@ void test_isqrt_against_ipow()
231
}
232
233
234
+#ifdef _MSC_VER
235
+# pragma warning(push)
236
+# pragma warning(disable : 4307) // integral constant overflow
237
+# pragma warning(disable : 4308) // negative integral constant converted to unsigned type
238
+#endif
239
+
240
void test_constexpr_isqrt()
241
{
242
constexpr uint128_t r1 {isqrt(uint128_t{0})};
@@ -252,6 +258,10 @@ void test_constexpr_isqrt()
252
258
static_assert(r6 == int128_t{111}, "isqrt(12321) constexpr");
253
259
254
260
261
262
+# pragma warning(pop)
263
264
255
265
int main()
256
266
257
267
test_uint128_isqrt_small();
0 commit comments