Przeglądaj źródła

Fix build error

Billy Barrow 1 miesiąc temu
rodzic
commit
fd812d0765
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/lib/Operators/Comparison.vala

+ 1 - 1
src/lib/Operators/Comparison.vala

@@ -12,7 +12,7 @@ namespace Invercargill {
             return (a, b) => (int)(((uint64)a) - ((uint64)b));
         }
         else if(type == typeof(double)) {
-            return (a, b) => (int)(((double)a) - ((double)b));
+            return (a, b) => (int)(((double?)a) - ((double?)b));
         }
         else if(type.is_a(typeof(Comparable))) {
             return (a, b) => ((Comparable<T>)a).compare(b);