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()); } };