[dconf-editor] Byte variants are now officially uint8.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf-editor] Byte variants are now officially uint8.
- Date: Wed, 1 Aug 2018 08:22:31 +0000 (UTC)
commit ff479c6a0cd9918a07b67cf298a2f2e4781fdad0
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Wed Aug 1 10:21:07 2018 +0200
Byte variants are now officially uint8.
https://gitlab.gnome.org/GNOME/glib/commit/09419fdeb49bae20a350fa838bacc180aba5eead
editor/dconf-view.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/editor/dconf-view.vala b/editor/dconf-view.vala
index 18be5b2..186cbab 100644
--- a/editor/dconf-view.vala
+++ b/editor/dconf-view.vala
@@ -410,7 +410,7 @@ private class KeyEditorChildNumberInt : SpinButton, KeyEditorChild
{
switch (key_type)
{
- case "y": return new Variant.byte ((uchar) get_int64_from_entry ()); // TODO uchar or uint8?
+ case "y": return new Variant.byte ((uint8) get_int64_from_entry ());
case "n": return new Variant.int16 ((int16) get_int64_from_entry ());
case "q": return new Variant.uint16 ((uint16) get_int64_from_entry ());
case "i": return new Variant.int32 ((int32) get_int64_from_entry ());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]