Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
MSVC warning and fix #2627
Browse files Browse the repository at this point in the history
  • Loading branch information
glebm authored and xzyfer committed Nov 23, 2018
1 parent 8f40dc0 commit 534065c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1561,7 +1561,7 @@ namespace Sass {
{
if (String_Schema_Obj schema = Cast<String_Schema>(contents())) {
if (schema->length() == 0) return false;
return Cast<Parent_Reference>(schema->at(0));
return Cast<Parent_Reference>(schema->at(0)) != nullptr;
}
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion src/operation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

};
Expand Down

0 comments on commit 534065c

Please sign in to comment.