summaryrefslogtreecommitdiff
path: root/src/ast/expr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast/expr.cpp')
-rw-r--r--src/ast/expr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ast/expr.cpp b/src/ast/expr.cpp
index 24e6ab3b..ddb72beb 100644
--- a/src/ast/expr.cpp
+++ b/src/ast/expr.cpp
@@ -41,7 +41,7 @@ SERIALISE_TYPE(Expr::, "Expr", {
::std::ostream& operator<<(::std::ostream& os, const ExprNode& node)
{
- if( &node != nullptr ) {
+ if( static_cast<const void*>(&node) != nullptr ) {
node.print(os);
}
else {