From 78e5a264e0d08354cd1c0aa7f32c429784460f5f Mon Sep 17 00:00:00 2001 From: Bruno de Oliveira Abinader Date: Fri, 14 Jun 2019 12:42:24 +0300 Subject: [core] Fix macOS clang exception error in expression-tests/to-number/2-ary --- src/mbgl/style/expression/coercion.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mbgl/style/expression/coercion.cpp b/src/mbgl/style/expression/coercion.cpp index e0c29be1a2..284d6f2e3e 100644 --- a/src/mbgl/style/expression/coercion.cpp +++ b/src/mbgl/style/expression/coercion.cpp @@ -25,7 +25,7 @@ EvaluationResult toNumber(const Value& v) { [](const std::string& s) -> optional { try { return util::stof(s); - } catch (const std::exception&) { + } catch (...) { return optional(); } }, -- cgit v1.2.1