From 3d1812aacd340193480542f2946461b27d4c18d3 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Tue, 17 Aug 2021 15:41:26 -0700 Subject: [PATCH] Explicitly cast a value to the decltype of get_value(). Can't always rely on implicit conversion working. --- libgnucash/app-utils/gnc-optiondb.i | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgnucash/app-utils/gnc-optiondb.i b/libgnucash/app-utils/gnc-optiondb.i index 969d8ec77f..4350f1c83c 100644 --- a/libgnucash/app-utils/gnc-optiondb.i +++ b/libgnucash/app-utils/gnc-optiondb.i @@ -899,7 +899,7 @@ wrap_unique_ptr(GncOptionDBPtr, GncOptionDB); return; } auto value{scm_to_value>(new_value)}; //Can't inline, set_value takes arg by reference. - option.set_value(value); + option.set_value(static_cast(value)); }, swig_get_option($self)); } catch(const std::invalid_argument& err)