[gnome-klotski/flatpak-ci] klotski-window: Fix building the app on the latest runtime



commit f4c02e2d727df21ec17309741fc84d86f5c0b222
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
    
    Use int64 instead of int32.
    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]