From 8409bf9ce44505749c8066aa635485a395bc569d Mon Sep 17 00:00:00 2001 From: Erica Fischer Date: Wed, 2 Oct 2024 15:19:30 -0700 Subject: [PATCH] Top-level null filter now evaluates to true (#277) --- CHANGELOG.md | 4 ++++ evaluator.cpp | 2 +- version.hpp | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6044b024..0110c760 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 2.63.0 + +* Top-level null filter now evaluates to true + # 2.62.6 * Remove buggy optimization to avoid reclipping in tippecanoe-overzoom diff --git a/evaluator.cpp b/evaluator.cpp index 1f528226..18cb5fcf 100644 --- a/evaluator.cpp +++ b/evaluator.cpp @@ -262,7 +262,7 @@ static int eval(std::function feature, json_obje } else if (f->type == JSON_FALSE) { return 0; } else if (f->type == JSON_NULL) { - return -1; + return 1; } if (f->type == JSON_NUMBER) { diff --git a/version.hpp b/version.hpp index 6018d66a..830b175b 100644 --- a/version.hpp +++ b/version.hpp @@ -1,6 +1,6 @@ #ifndef VERSION_HPP #define VERSION_HPP -#define VERSION "v2.62.6" +#define VERSION "v2.63.0" #endif