Browse Source

Fix build error

Billy Barrow 1 month ago
parent
commit
fd812d0765
1 changed files with 1 additions and 1 deletions
  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);