[gnome-klotski/flatpak-ci] meson: validate appdata file without network access



commit be18d22ef1962076c3fc06c073610a939fda3a32
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date:   Sun Jan 20 03:50:39 2019 +0100

    meson: validate appdata file without network access

 data/meson.build        | 2 +-
 src/klotski-window.vala | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/data/meson.build b/data/meson.build
index 68509e0..c7d7047 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -61,7 +61,7 @@ if appstream_util.found()
   test(
     'validate-appdata', appstream_util,
     args: [
-      'validate-relax', appdata_file.full_path()
+      'validate-relax', '--nonet', appdata_file.full_path()
     ]
   )
 endif
diff --git a/src/klotski-window.vala b/src/klotski-window.vala
index 545fc6c..6ab57dc 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 */
-        int64 result = 0xFFFFFFFFu;
+        uint32 result = 0xFFFFFFFFu;
         var data = levels[level_number].data;
         for (var i = 0; data[i] != '\0'; i++)
         {
@@ -851,12 +851,12 @@ public class KlotskiWindow : ApplicationWindow
                     result = (result << 1) ^ 0x04c11db7;
                 else
                     result = (result << 1);
-                result &= 0xFFFFFFFF;
+                result &= 0xFFFFFFFFu;
                 octet <<= 1;
             }
         }
 
-        return "%08X".printf (~(uint)result);
+        return "%08X".printf (~result);
     }
 
     private void load_solved_state ()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]