Skip to content

Commit 534065c

Browse files
glebmxzyfer
authored andcommitted
MSVC warning and fix #2627
1 parent 8f40dc0 commit 534065c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ast.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1561,7 +1561,7 @@ namespace Sass {
15611561
{
15621562
if (String_Schema_Obj schema = Cast<String_Schema>(contents())) {
15631563
if (schema->length() == 0) return false;
1564-
return Cast<Parent_Reference>(schema->at(0));
1564+
return Cast<Parent_Reference>(schema->at(0)) != nullptr;
15651565
}
15661566
return false;
15671567
}

src/operation.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ namespace Sass {
200200
{
201201
std::string msg(typeid(*this).name());
202202
msg += ": CRTP not implemented for ";
203-
throw std::runtime_error(msg + typeid(*x).name());
203+
throw std::runtime_error(msg + typeid(x).name());
204204
}
205205

206206
};

0 commit comments

Comments
 (0)