Skip to content

Commit bef46e8

Browse files
chqrliebvdberg
authored andcommitted
Compiler: fix gcc compilation error
* fix compilation error with old gcc version 4.9.2
1 parent 0e0a2cc commit bef46e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

analyser/module_analyser_stmt.c2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ fn void Analyser.analyseReturnStmt(Analyser* ma, Stmt* s) {
421421

422422
fn void Analyser.checkReturnAddrOfLocal(Analyser* ma, Expr* arg) {
423423
//checks for: return &a;
424-
if (!(*arg).isUnaryOp()) return;
424+
if (!arg.isUnaryOp()) return;
425425

426426
UnaryOperator* uo = (UnaryOperator*)arg;
427427
Expr* inner = uo.getInner();

0 commit comments

Comments
 (0)