]> sigrok.org Git - pulseview.git/commitdiff
pv::prop::Int: Fixed unsigned int binding
authorJoel Holdsworth <redacted>
Wed, 21 Jan 2015 01:28:38 +0000 (20:28 -0500)
committerUwe Hermann <redacted>
Tue, 27 Jan 2015 15:28:31 +0000 (16:28 +0100)
pv/prop/int.cpp

index 0edba420b2e8538819d6f4b1d55c9c2a75ef26ba..55b7ab3e09fa8bd4f00cb37ff4886a5f795d7fb3 100644 (file)
@@ -154,7 +154,7 @@ void Int::commit()
        else if (g_variant_type_equal(type, G_VARIANT_TYPE_INT32))
                new_value = g_variant_new_int32(spin_box_->value());
        else if (g_variant_type_equal(type, G_VARIANT_TYPE_UINT32))
-               new_value = g_variant_new_int32(spin_box_->value());
+               new_value = g_variant_new_uint32(spin_box_->value());
        else if (g_variant_type_equal(type, G_VARIANT_TYPE_INT64))
                new_value = g_variant_new_int64(spin_box_->value());
        else if (g_variant_type_equal(type, G_VARIANT_TYPE_UINT64))