]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Pull request #3188: Fix Debian10.32 unit tests.
authorMike Stepanek (mstepane) <mstepane@cisco.com>
Mon, 29 Nov 2021 12:43:04 +0000 (12:43 +0000)
committerMike Stepanek (mstepane) <mstepane@cisco.com>
Mon, 29 Nov 2021 12:43:04 +0000 (12:43 +0000)
Merge in SNORT/snort3 from ~OSHUMEIK/snort3:fix_32 to master

Squashed commit of the following:

commit 4e2e3de3c279ddc44460fab87adb0f1f2812ccf9
Author: Oleksii Shumeiko <oshumeik@cisco.com>
Date:   Thu Nov 25 09:47:03 2021 +0200

    helpers: fix stream unit test on 32 bit platforms

src/helpers/test/json_stream_test.cc

index 01d2070242a0576fccf249befebc1bd7c517a18d..2aec9185b86a0c7e2f49ef342e7f9abf5756ab9b 100644 (file)
@@ -92,7 +92,7 @@ TEST_CASE("basic", "[json_stream]")
 
     SECTION("int")
     {
-        js.put("i", (long) 0);
+        js.put("i", (int64_t)0);
         const char* x = R"-("i": 0)-";
         CHECK(ss.str() == x);
     }