[gnome-klotski/flatpak-ci: 3/4] klotski-window: Fix building the app on the latest runtime
- From: Bilal Elmoussaoui <bilelmoussaoui src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-klotski/flatpak-ci: 3/4] klotski-window: Fix building the app on the latest runtime
- Date: Mon, 21 Jan 2019 00:23:04 +0000 (UTC)
commit d734e4f9a8f77f2a3acc3dadbc20a8750091ac69
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date: Sun Jan 20 03:40:26 2019 +0100
klotski-window: Fix building the app on the latest runtime
Appdata: fixes the launchable tag.
data/org.gnome.Klotski.appdata.xml.in | 2 +-
src/klotski-window.vala | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/data/org.gnome.Klotski.appdata.xml.in b/data/org.gnome.Klotski.appdata.xml.in
index d381bdb..f5497b8 100644
--- a/data/org.gnome.Klotski.appdata.xml.in
+++ b/data/org.gnome.Klotski.appdata.xml.in
@@ -35,7 +35,7 @@
<provides>
<id>gnome-klotski.desktop</id>
</provides>
- <launchable type="desktop-id">org.gnome.Klotski</launchable>
+ <launchable type="desktop-id">org.gnome.Klotski.desktop</launchable>
<translation type="gettext">gnome-klotski</translation>
<url type="bugtracker">https://gitlab.gnome.org/GNOME/gnome-klotski/issues/</url>
<url type="donation">http://www.gnome.org/friends/</url>
diff --git a/src/klotski-window.vala b/src/klotski-window.vala
index bdb6fdc..545fc6c 100644
--- a/src/klotski-window.vala
+++ b/src/klotski-window.vala
@@ -840,7 +840,7 @@ public class KlotskiWindow : ApplicationWindow
private string get_level_key (int level_number)
{
/* Calculate the CRC of the level data */
- uint32 result = 0xFFFFFFFFu;
+ int64 result = 0xFFFFFFFFu;
var data = levels[level_number].data;
for (var i = 0; data[i] != '\0'; i++)
{
@@ -856,7 +856,7 @@ public class KlotskiWindow : ApplicationWindow
}
}
- return "%08X".printf (~result);
+ return "%08X".printf (~(uint)result);
}
private void load_solved_state ()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]