From 1262d474ebbd3ce8d2581d16da392a4896dc58d2 Mon Sep 17 00:00:00 2001
From: Niels Lohmann <mail@nlohmann.me>
Date: Wed, 14 Mar 2018 07:32:28 +0100
Subject: [PATCH] :checkered_flag: fixed an MSVC warning

---
 test/src/unit-ubjson.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/src/unit-ubjson.cpp b/test/src/unit-ubjson.cpp
index 88b72fc8..db0a8520 100644
--- a/test/src/unit-ubjson.cpp
+++ b/test/src/unit-ubjson.cpp
@@ -152,7 +152,7 @@ TEST_CASE("UBJSON")
                     numbers.push_back(-10000000);
                     numbers.push_back(-100000000);
                     numbers.push_back(-1000000000);
-                    numbers.push_back(-2147483648L);
+                    numbers.push_back(-2147483647 - 1); // https://stackoverflow.com/a/29356002/266378
                     for (auto i : numbers)
                     {
                         CAPTURE(i);