From 7cb70ed6f3130b70122be761786a7154e45b7640 Mon Sep 17 00:00:00 2001 From: Andrew Bell Date: Thu, 18 Apr 2024 18:11:07 -0400 Subject: [PATCH] Don't store -1 into unsigned value. --- test/test_store_into.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_store_into.cpp b/test/test_store_into.cpp index c1d28bc..c9b7a40 100644 --- a/test/test_store_into.cpp +++ b/test/test_store_into.cpp @@ -85,7 +85,7 @@ TEST_CASE("Test store_into(uint8_t), default value, non specified" * TEST_CASE("Test store_into(uint8_t), default value, specified" * test_suite("store_into")) { argparse::ArgumentParser program("test"); - uint8_t res = -1; + uint8_t res = 55; program.add_argument("--int-opt").default_value((uint8_t)3).store_into(res); program.parse_args({"./test.exe", "--int-opt", "5"});