From 534065c74c2452578e3c354ed908163ce18704e8 Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Thu, 22 Nov 2018 18:26:44 +0000 Subject: [PATCH] MSVC warning and fix #2627 --- src/ast.cpp | 2 +- src/operation.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ast.cpp b/src/ast.cpp index 74bf0e176..981fc34fd 100644 --- a/src/ast.cpp +++ b/src/ast.cpp @@ -1561,7 +1561,7 @@ namespace Sass { { if (String_Schema_Obj schema = Cast(contents())) { if (schema->length() == 0) return false; - return Cast(schema->at(0)); + return Cast(schema->at(0)) != nullptr; } return false; } diff --git a/src/operation.hpp b/src/operation.hpp index 3f1660636..977a5d1c5 100644 --- a/src/operation.hpp +++ b/src/operation.hpp @@ -200,7 +200,7 @@ namespace Sass { { std::string msg(typeid(*this).name()); msg += ": CRTP not implemented for "; - throw std::runtime_error(msg + typeid(*x).name()); + throw std::runtime_error(msg + typeid(x).name()); } };